From 384eed0b5ca3e99987cd8c4f06807a6a5255aa78 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 9 Jan 2024 12:41:24 +0530 Subject: [PATCH] nvim: treesitter: Add parsers for C, lua, vim & vimdoc We were getting errors on trying to open vim help files. As per nvim-treesitter, parsers for C, lua, query, vim & vimdoc should always be installed. --- nvim/.config/nvim/lua/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/treesitter.lua b/nvim/.config/nvim/lua/treesitter.lua index 577914b..03f932e 100644 --- a/nvim/.config/nvim/lua/treesitter.lua +++ b/nvim/.config/nvim/lua/treesitter.lua @@ -1,4 +1,4 @@ -local ts_langs = { "bash", "cpp", "diff", "fennel", "fish", "go", "haskell", "html", "java", "javascript", "jsdoc", "json", "markdown", "nix", "python", "query", "racket", "rust", "scheme", "toml", "tsx", "typescript", "verilog" } +local ts_langs = { "bash", "c", "cpp", "diff", "fennel", "fish", "go", "haskell", "html", "java", "javascript", "jsdoc", "json", "lua", "markdown", "nix", "python", "query", "racket", "rust", "scheme", "toml", "tsx", "typescript", "verilog", "vim", "vimdoc" } require'nvim-treesitter.install'.compilers = { "gcc" } require'nvim-treesitter.configs'.setup {