diff options
author | Guangxiong Lin <[email protected]> | 2023-12-26 23:48:55 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-12-26 23:48:55 +0800 |
commit | 4d77b7e3165196342f7a6cc83eb549b63735ff5b (patch) | |
tree | 38993bbce621349b8bdc9857f176213d4d1513ad /.vim/after/plugin/nvim-cscope.vim | |
parent | 1c6f6f0b0ecaad9b9266683377034252714e30fa (diff) | |
download | dotfiles-4d77b7e3165196342f7a6cc83eb549b63735ff5b.tar.gz dotfiles-4d77b7e3165196342f7a6cc83eb549b63735ff5b.tar.bz2 dotfiles-4d77b7e3165196342f7a6cc83eb549b63735ff5b.zip |
Add neovim config
Diffstat (limited to '.vim/after/plugin/nvim-cscope.vim')
-rw-r--r-- | .vim/after/plugin/nvim-cscope.vim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.vim/after/plugin/nvim-cscope.vim b/.vim/after/plugin/nvim-cscope.vim new file mode 100644 index 0000000..c463800 --- /dev/null +++ b/.vim/after/plugin/nvim-cscope.vim @@ -0,0 +1,29 @@ +if !has('nvim') + finish +endif + +packadd cscope_maps.nvim + +nmap <leader>css :Cscope find s <C-R>=expand("<cword>")<CR><CR> +nmap <leader>csg :Cscope find g <C-R>=expand("<cword>")<CR> +nmap <leader>csc :Cscope find c <C-R>=expand("<cword>")<CR> +nmap <leader>cst :Cscope find t <C-R>=expand("<cword>")<CR><CR> +nmap <leader>cse :Cscope find e <C-R>=expand("<cword>")<CR><CR> +nmap <leader>csf :Cscope find f <C-R>=expand("<cfile>")<CR><CR> +nmap <leader>csi :Cscope find i ^<C-R>=expand("<cfile>")<CR>$<CR> +nmap <leader>csd :Cscope find d <C-R>=expand("<cword>")<CR> +nmap <leader>csa :Cscope find a <C-R>=expand("<cword>")<CR> +nmap <leader>cs<space> :Cscope find<space> +nmap <C-]> :Cstag <C-R>=expand('<cword>')<CR> + +lua <<EOF + + local cscope_maps = require 'cscope_maps' + cscope_maps.setup({ + disable_maps = true, + cscope = { + exec = "gtags-cscope", + }, + }) + +EOF |