add treesitter playground

This commit is contained in:
Ray Elliott 2021-09-04 13:37:48 +01:00
parent 2e8442b64e
commit d4a4fde031
2 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,11 @@ call plug#begin('~/.config/nvim/bundle')
" #playground {{{ " #playground {{{
" https://github.com/nvim-treesitter/playground " https://github.com/nvim-treesitter/playground
Plug 'nvim-treesitter/playground' Plug 'nvim-treesitter/playground'
"}}}
" #vim-lspconfig {{{
" https://github.com/neovim/nvim-lspconfig
" https://github.com/neovim/nvim-lspconfig/wiki
Plug 'neovim/nvim-lspconfig'
" setings after plug#end " setings after plug#end
"}}} "}}}

View File

@ -15,7 +15,8 @@ function! <SID>SynStack()"{{{
endif endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")') '-> ' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)), 'name' ) echo map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")') '-> ' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)), 'name' )
endfunc endfunc
nmap <space>pp :call <SID>SynStack()<CR> " nmap <space>pp :call <SID>SynStack()<CR>
nmap <silent><space>pp :TSHighlightCapturesUnderCursor<CR>
"}}} "}}}
function! s:RunShellCommand(cmdline) abort"{{{ function! s:RunShellCommand(cmdline) abort"{{{
" Shell command " Shell command