xaizek / dotvim (License: Unspecified) (since 2018-12-07)
Vim configuration and plugins.
Commit 20cb430ef64144dde7177a7dcb3bdaacbd04a6bb

Make :SynStack display more information
Author: xaizek
Author date (UTC): 2021-07-04 14:53
Committer name: xaizek
Committer date (UTC): 2021-07-04 14:53
Parent(s): 8b329d0aee55c72078101add285611fd3f7e6f63
Signing key: 99DC5E4DB05F6BE2
Tree: cb4463239eec0615e9a2bf36e21e416dc6d4558d
File Lines added Lines deleted
pack/other/start/synstack/autoload/synstack.vim 7 2
File pack/other/start/synstack/autoload/synstack.vim changed (mode: 100644) (index 067430c..7f74d0b)
1 1 " dumps syntax stack for element under the cursor " dumps syntax stack for element under the cursor
2 2 function! synstack#SynStack() function! synstack#SynStack()
3 for id in synstack(line('.'), col('.'))
4 echo synIDattr(id, 'name')
3 for l:id in synstack(line('.'), col('.'))
4 let l:linked = synIDtrans(l:id)
5 if l:linked == l:id
6 echo synIDattr(l:id, 'name')
7 else
8 echo synIDattr(l:id, 'name') '->' synIDattr(l:linked, 'name')
9 endif
5 10 endfor endfor
6 11 endfunction endfunction
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotvim

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotvim

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master