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

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.install'.compilers = { "gcc" }
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
ensure_installed = ts_langs, ensure_installed = ts_langs,
highlight = { enable = true, }, highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
query_linter = { query_linter = {
enable = true, enable = true,
use_virtual_text = true, use_virtual_text = true,