From 6cb83ef74d6d344268aa60aef7b07d0601ac6701 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 2 Jun 2023 13:02:13 +0530 Subject: [PATCH] nvim: treesitter: Disable additional vim regex highlighting With this set to true, neovim will run `:h syntax` and tree-sitter at the same time. Using this option may slow down one's editor and one may see some duplicate highlights. Disable it. --- nvim/.config/nvim/lua/treesitter.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/treesitter.lua b/nvim/.config/nvim/lua/treesitter.lua index d0c74ea..da073dc 100644 --- a/nvim/.config/nvim/lua/treesitter.lua +++ b/nvim/.config/nvim/lua/treesitter.lua @@ -3,7 +3,10 @@ local ts_langs = { "bash", "cpp", "diff", "fennel", "fish", "go", "haskell", "ht require'nvim-treesitter.install'.compilers = { "gcc" } require'nvim-treesitter.configs'.setup { ensure_installed = ts_langs, - highlight = { enable = true, }, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, query_linter = { enable = true, use_virtual_text = true,