aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2024-08-08 23:19:09 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2024-08-08 23:19:09 +0300
commitc84f10f37e2641c7a0da38bd8375dd0395e3a890 (patch)
tree78d8228e6d88fa993f6f214b18e78ae14212bc63
parent4df4d56437f705ec770c5768263f410ffd8d5a69 (diff)
downloadvimrice-c84f10f37e2641c7a0da38bd8375dd0395e3a890.tar.gz
vimrice-c84f10f37e2641c7a0da38bd8375dd0395e3a890.zip
add lsp and treesitter zig configs
-rw-r--r--dotfiles/.config/nvim/init.vim2
-rw-r--r--dotfiles/.config/nvim/lua.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 4d1b95c..ff48a91 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -279,7 +279,7 @@ call plug#end()
if has('nvim-0.9')
" XXX: neovim's built-in C et al treesitter parsers are better, although
" not ideal either.
- lua require('nvim-treesitter.configs').setup{ ensure_installed = { "go", "rust", "python", "lua", "comment" }, highlight = { enable = true, disable = { "c", "cpp", "vim", "make" } }}
+ lua require('nvim-treesitter.configs').setup{ ensure_installed = { "go", "rust", "python", "lua", "comment", "zig" }, highlight = { enable = true, disable = { "c", "cpp", "vim", "make" } }}
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
endif
diff --git a/dotfiles/.config/nvim/lua.lua b/dotfiles/.config/nvim/lua.lua
index 8514d19..683abd4 100644
--- a/dotfiles/.config/nvim/lua.lua
+++ b/dotfiles/.config/nvim/lua.lua
@@ -7,6 +7,7 @@ lspconfig.gopls.setup{}
lspconfig.pylsp.setup{}
lspconfig.rls.setup{}
lspconfig.quick_lint_js.setup{}
+lspconfig.zls.setup{}
require('lspfuzzy').setup{}
local lsp_icons = {