From b60f05c679c1862807f584d1daf0a11553285302 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 21 Jun 2020 17:14:29 +0200 Subject: [PATCH] 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`. --- lua/nvim-treesitter/highlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index 0086fcb0d..8e03d1d75 100644 --- a/lua/nvim-treesitter/highlight.lua +++ b/lua/nvim-treesitter/highlight.lua @@ -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"