diff options
author | ben <ben@nagy.contact> | 2025-01-08 15:45:00 -0800 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-01-08 15:45:00 -0800 |
commit | bb2e30b412c23b76ae876e792398f4926467d962 (patch) | |
tree | 4f50f94b7bf50103a61ddbab8a0a30f753918b21 /nvim/lua/plugins/treesitter.lua | |
parent | ec2cc455fed8933a98a8b13bea015dd9c4b6e99a (diff) |
added current config
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, + }, +} |