aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
authorben <ben@nagy.contact>2025-05-03 14:28:00 -0700
committerben <ben@nagy.contact>2025-05-03 14:28:00 -0700
commitc1e58a905bbdddf109dd3b7473edb2e8076d708b (patch)
tree47388a1dd7beae74e9b4753761b80c239a1b2ef9 /config/nvim/lua/plugins/treesitter.lua
parentdec61653987f584822f87515281e9f82aaac972f (diff)
current neovim config (lua)
Diffstat (limited to 'config/nvim/lua/plugins/treesitter.lua')
-rw-r--r--config/nvim/lua/plugins/treesitter.lua31
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,
+ },
+}