nvim/after/plugin/synstack.vim
2016-12-02 15:43:47 +01:00

9 lines
226 B
VimL

" shows syntaxic group of the word under the cursor
command! SynStack :call SynStack()
function! SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc