aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-03-24 18:33:17 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-03-24 18:33:17 +0300
commit64fd91d57679a652767509af68b822c1e1646251 (patch)
tree9ace11fc51009679a5cb050f2afd5155fb857df2 /dotfiles
parent7bc779fd3be65d4aba736f7b9fe6357988e1e35b (diff)
downloadvimrice-64fd91d57679a652767509af68b822c1e1646251.tar.gz
vimrice-64fd91d57679a652767509af68b822c1e1646251.zip
treesitter: move config to lua.vimHEADmaster
Also install and use protobuf parser.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/nvim/init.vim3
-rw-r--r--dotfiles/.config/nvim/lua.lua9
2 files changed, 9 insertions, 3 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 2137163..8c7da5e 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -279,9 +279,6 @@ call plug#end()
" Treesitter
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", "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 04fbc35..f78ab11 100644
--- a/dotfiles/.config/nvim/lua.lua
+++ b/dotfiles/.config/nvim/lua.lua
@@ -10,6 +10,15 @@ lspconfig.quick_lint_js.setup{}
lspconfig.zls.setup{}
require('lspfuzzy').setup{}
+if vim.fn.has('nvim-0.9') then
+ -- XXX: neovim's built-in C et al treesitter parsers are better, although
+ -- not ideal either.
+ require('nvim-treesitter.configs').setup{
+ ensure_installed = { "go", "proto", "rust", "python", "lua", "comment", "zig" },
+ highlight = { enable = true, disable = { "c", "cpp", "vim", "make" } },
+ }
+end
+
local lsp_icons = {
Class = " ",
Color = " ",