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.
This commit is contained in:
Sanchayan Maity 2023-06-02 13:02:13 +05:30
parent 909cbef796
commit 6cb83ef74d
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
1 changed files with 4 additions and 1 deletions

View File

@ -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,