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:
Stephan Seitz 2020-06-21 17:14:29 +02:00
parent 969d496f3f
commit b60f05c679

View file

@ -10,7 +10,7 @@ local M = {
local hlmap = vim.treesitter.TSHighlighter.hl_map local hlmap = vim.treesitter.TSHighlighter.hl_map
-- Misc -- Misc
hlmap.error = "Error" hlmap.error = nil -- = "Error" activates highlighting of syntax errors
hlmap["punctuation.delimiter"] = "Delimiter" hlmap["punctuation.delimiter"] = "Delimiter"
hlmap["punctuation.bracket"] = "Delimiter" hlmap["punctuation.bracket"] = "Delimiter"
hlmap["punctuation.special"] = "Delimiter" hlmap["punctuation.special"] = "Delimiter"