diff options
Diffstat (limited to 'config/nvim/lua/plugins/treesitter.lua')
-rw-r--r-- | config/nvim/lua/plugins/treesitter.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/treesitter.lua b/config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..b7fe8fb --- /dev/null +++ b/config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,31 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + event = { "BufReadPost", "BufNewFile" }, + lazy = false, + + 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, + }, +} |