nvim: after: ftplugin: Add n & S fields when generating tags

n will tell ctags add a line number filed in each tag record
and S means including function signatures.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-06-20 14:46:12 +05:30
parent 254e6754b9
commit c6bb3ecdfc

View file

@ -6,7 +6,7 @@ setlocal foldmethod=syntax
setlocal complete-=i setlocal complete-=i
setlocal path+=/usr/include/** setlocal path+=/usr/include/**
nmap <buffer> <LocalLeader>ct :AsyncDo ctags -R .<CR> nmap <buffer> <LocalLeader>ct :AsyncDo ctags -R --fields=+nS .<CR>
nmap <buffer> <LocalLeader>cu :AsyncDo cscope -bqR<CR> nmap <buffer> <LocalLeader>cu :AsyncDo cscope -bqR<CR>
nmap <buffer> <LocalLeader>cr :cs reset<CR> nmap <buffer> <LocalLeader>cr :cs reset<CR>