fix(treesitter): do not link @error by default

The @error capture is used for tree-sitter's ERROR node, which indicates
a parsing error -- which can be quite frequent (and jarring) while typing.

Users can still manually `hi link @error Error` in their config.
This commit is contained in:
Christian Clason
2022-09-04 17:58:33 +02:00
parent 64cc78c9f3
commit 97f38f0a9b
3 changed files with 1 additions and 6 deletions

View File

@@ -106,6 +106,7 @@ describe('treesitter highlighting', function()
}
exec_lua([[ hl_query = ... ]], hl_query)
command [[ hi link @error ErrorMsg ]]
command [[ hi link @warning WarningMsg ]]
end)