diff --git a/term/.config/nvim/lua/plugins/treesitter.lua b/term/.config/nvim/lua/plugins/treesitter.lua index 330f4ec..1d7bafd 100644 --- a/term/.config/nvim/lua/plugins/treesitter.lua +++ b/term/.config/nvim/lua/plugins/treesitter.lua @@ -1,13 +1,12 @@ return { "nvim-treesitter/nvim-treesitter", - branch = "master", build = ":TSUpdate", event = { "BufReadPost", "BufNewFile" }, config = function() -- Ensure nvim-treesitter queries are preferred over runtime queries -- This fixes the "except*" syntax error with updated parsers vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/lazy/nvim-treesitter") - + local ok, configs = pcall(require, "nvim-treesitter.configs") if ok then configs.setup({ @@ -27,9 +26,12 @@ return { "markdown", "markdown_inline", }, - highlight = { enable = true }, + highlight = { + enable = true, + -- Disable additional_vim_regex_highlighting to avoid conflicts + additional_vim_regex_highlighting = false, + }, indent = { enable = true }, - folding = { enable = true }, }) end end,