From 44a39eee24bbda4567d39411c934cee40e9161f4 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 19 Jun 2021 14:47:48 +0530 Subject: [PATCH] nvim: treesitter: Enable playground Helps to see what treesitter queries are being made. Would be helpful in tuning the color scheme. --- nvim/.config/nvim/lua/keymappings.lua | 1 + nvim/.config/nvim/lua/plugins.lua | 1 + nvim/.config/nvim/lua/treesitter.lua | 28 ++++++++++++++++++++++++++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 0b0e650..46bc0e9 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -116,6 +116,7 @@ remap('c', '', 'getcmdtype() =~ \'[?/]\' ? \'\' : feedkeys(\'\' remap('c', '', 'getcmdtype() =~ \'[?/]\' ? \'\' : feedkeys(\'\', \'int\')[1]', { noremap = true, expr = true }) remap('n', '', ':call SyntaxAttr#SyntaxAttr()', { noremap = true }) +remap('n', '', ':TSHighlightCapturesUnderCursor', { noremap = true }) -- After shifting a visual block, select it again remap('v', '<', '