aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2026-01-30 13:51:23 +0100
committerKarel Kočí <cynerd@email.cz>2026-01-30 13:51:23 +0100
commit24b56290a25160752685818942e964cc5e832d65 (patch)
tree16358333cc4b936cdfd7107e18c15fb9e48b0b2c
parente838cd7517339d33c59094e80abe382c2725c4af (diff)
downloadmyconfigs-master.tar.gz
myconfigs-master.tar.bz2
myconfigs-master.zip
nvim: disable table-mode syntax and update typst-previewHEADmaster
The table_mode_syntax is making nvim for some reason really slow and thus this disables it. I am not using that anyway. This also updates to the newer version of typst-preview as the older version no longer works.
-rw-r--r--config/nvim/init.vim3
-rw-r--r--config/nvim/lua/plugins.lua6
2 files changed, 6 insertions, 3 deletions
diff --git a/config/nvim/init.vim b/config/nvim/init.vim
index 8ca2669..c269b77 100644
--- a/config/nvim/init.vim
+++ b/config/nvim/init.vim
@@ -99,6 +99,9 @@ nnoremap <c-c><CR> :Explore<cr>
nnoremap <c-c>l :bnext<cr>
nnoremap <c-c>h :bprev<cr>
+" Table mode
+let g:table_mode_syntax = 0
+
" Format
nmap <leader>f :lua require("conform").format()<cr>
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index a1c17bf..d1a4c55 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -127,9 +127,9 @@ require("packer").startup(function(use)
-- Additional integrations -------------------------------------------------
use({
"chomosuke/typst-preview.nvim",
- tag = "v0.1.*",
- run = function()
- require("typst-preview").update()
+ tag = "v1.*",
+ config = function()
+ require("typst-preview").setup({})
end,
})
-- Movement, format and others ---------------------------------------------