From 30011d5c9dad163dafdff84acd360726e18f3da8 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 13 Jan 2021 16:04:27 +0530 Subject: [PATCH] nvim: Add SyntaxAttr plugin to help show highlight group under cursor --- nvim/.config/nvim/lua/keymappings.lua | 2 ++ nvim/.config/nvim/lua/plugins.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index a8f71d6..99c956e 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -110,3 +110,5 @@ remap('n', '', '', { noremap = true }) -- Use Tab & S-Tab instead of C-g and C-t for incsearch remap('c', '', 'getcmdtype() =~ \'[?/]\' ? \'\' : feedkeys(\'\', \'int\')[1]', { noremap = true, expr = true }) remap('c', '', 'getcmdtype() =~ \'[?/]\' ? \'\' : feedkeys(\'\', \'int\')[1]', { noremap = true, expr = true }) + +remap('n', '', ':call SyntaxAttr#SyntaxAttr()', { noremap = true }) diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 5e10172..6c7c33b 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -149,6 +149,7 @@ local init = function () use 'LnL7/vim-nix' -- Other syntax highlighting support use 'georgewitteman/vim-fish' + use 'inkarkat/SyntaxAttr.vim' -- For statusline use { 'glepnir/galaxyline.nvim',