aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim/lua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.config/nvim/lua.lua')
-rw-r--r--dotfiles/.config/nvim/lua.lua9
1 files changed, 9 insertions, 0 deletions
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 = " ",