From 7cd54de716bb13451ad3037f8d307866b35dd13c Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Sun, 4 Jul 2021 21:41:20 +0200 Subject: [PATCH] Map a few treesitter objects to Normal. Unfortunately the solarized theme makes these look overwhelmingly blue. --- nvim/lua/treesitter_config.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nvim/lua/treesitter_config.lua b/nvim/lua/treesitter_config.lua index 7275c31..9dda856 100644 --- a/nvim/lua/treesitter_config.lua +++ b/nvim/lua/treesitter_config.lua @@ -1,7 +1,15 @@ require('nvim-treesitter.configs').setup { ensure_installed = 'maintained', highlight = { - enable = true + enable = true, + -- fix several highlight groups linked to Identifier + -- which in solarized is a pretty intense shade of blue + -- TODO: do we have to be so blunt? this feels ugly + custom_captures = { + ['field'] = 'Normal', + ['parameter'] = 'Normal', + ['variable'] = 'Normal', + } }, playground = { enable = true