From bb2e30b412c23b76ae876e792398f4926467d962 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 8 Jan 2025 15:45:00 -0800 Subject: added current config --- nvim/lua/plugins/treesitter.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nvim/lua/plugins/treesitter.lua (limited to 'nvim/lua/plugins/treesitter.lua') 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, + }, +} -- cgit v1.2.3