nvim: Add SyntaxAttr plugin to help show highlight group under cursor

This commit is contained in:
Sanchayan Maity 2021-01-13 16:04:27 +05:30
parent 41f1e85929
commit 30011d5c9d
2 changed files with 3 additions and 0 deletions

View file

@ -110,3 +110,5 @@ remap('n', '<BS>', '<C-^>', { noremap = true })
-- Use Tab & S-Tab instead of C-g and C-t for incsearch
remap('c', '<Tab>', 'getcmdtype() =~ \'[?/]\' ? \'<C-g>\' : feedkeys(\'<Tab>\', \'int\')[1]', { noremap = true, expr = true })
remap('c', '<S-Tab>', 'getcmdtype() =~ \'[?/]\' ? \'<C-t>\' : feedkeys(\'<S-Tab>\', \'int\')[1]', { noremap = true, expr = true })
remap('n', '<F1>', ':call SyntaxAttr#SyntaxAttr()<CR>', { noremap = true })

View file

@ -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',