mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
Deactivate highlighting of @error
This can be annoying while typing while in some cases this might be useful to detect syntax errors. We could change the default to no highlighting of errors. We can keep it in the code to highlight that users can still opt-in to an highlighting of `@error`.
This commit is contained in:
parent
969d496f3f
commit
b60f05c679
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ local M = {
|
|||
local hlmap = vim.treesitter.TSHighlighter.hl_map
|
||||
|
||||
-- Misc
|
||||
hlmap.error = "Error"
|
||||
hlmap.error = nil -- = "Error" activates highlighting of syntax errors
|
||||
hlmap["punctuation.delimiter"] = "Delimiter"
|
||||
hlmap["punctuation.bracket"] = "Delimiter"
|
||||
hlmap["punctuation.special"] = "Delimiter"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue