dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit a700b4f67c17c75fb9e3b0da1cbea5da3c542adb
parent e4e127757344fd9a9bbb7aa311d5663a8a1fb706
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 11 Mar 2019 18:08:05 +0100

Add function to identify color group under cursor

Diffstat:
Mlinks/.vim/plugin/appearance.vim | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/links/.vim/plugin/appearance.vim b/links/.vim/plugin/appearance.vim @@ -51,6 +51,15 @@ augroup end "colorscheme tender colorscheme adbasic +" Show syntax highlighting groups for word under cursor +nnoremap <C-S-P> :call <SID>SynStack()<CR> +function! <SID>SynStack() + if !exists("*synstack") + return + endif + echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') +endfunc + augroup AleAppearance let g:ale_sign_error = '✖' let g:ale_sign_warning = '⚠'