diff options
Diffstat (limited to 'nvim/lua/plugins/treesitter.lua')
-rw-r--r-- | nvim/lua/plugins/treesitter.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..f3f4dd0 --- /dev/null +++ b/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,30 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + event = { "BufReadPost", "BufNewFile" }, + + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { + --"c", + "bash", + "markdown", + "markdown_inline", + "bibtex", + "latex", + "vimdoc", + }, + --ignore_installed = { "c" }, + sync_install = false, + auto_install = true, + + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + disable = { "c", "cpp", "h" } + } + }) + end, + }, +} |