nvim: init.vim: Use local leader for Haskell & C maps

This commit is contained in:
Sanchayan Maity 2019-12-24 13:57:05 +05:30 committed by Sanchayan Maity
parent ca4b9f57f6
commit fb96c1af6c
1 changed files with 27 additions and 27 deletions

View File

@ -369,12 +369,12 @@ augroup END
augroup haskell_maps
au!
au FileType haskell nmap <Leader>ht :NeomakeSh stack exec -- fast-tags -R .<CR>
au FileType haskell nmap <Leader>hg :Ghcid<CR>
au FileType haskell nmap <Leader>hk :GhcidKill<CR>
au FileType haskell nmap <Leader>hc :HoogleClose<CR>
au FileType haskell nmap <Leader>ho :exe ':Hoogle ' . expand('<cword>')<CR>
au FileType haskell nmap <Leader>hi :exe ':HoogleInfo ' . expand('<cword>')<CR>
au FileType haskell nmap <LocalLeader>t :NeomakeSh stack exec -- fast-tags -R .<CR>
au FileType haskell nmap <LocalLeader>g :Ghcid<CR>
au FileType haskell nmap <LocalLeader>k :GhcidKill<CR>
au FileType haskell nmap <LocalLeader>c :HoogleClose<CR>
au FileType haskell nmap <LocalLeader>o :exe ':Hoogle ' . expand('<cword>')<CR>
au FileType haskell nmap <LocalLeader>i :exe ':HoogleInfo ' . expand('<cword>')<CR>
au FileType haskell setlocal keywordprg=:Hoogle
augroup END
@ -395,29 +395,29 @@ augroup END
augroup c_maps
au!
au FileType c nmap <Leader>ct :NeomakeSh ctags -R .<CR>
au FileType c nmap <Leader>cu :NeomakeSh cscope -bqR<CR>
au FileType c nmap <Leader>cr :cs reset<CR>
au FileType c nmap <LocalLeader>ct :NeomakeSh ctags -R .<CR>
au FileType c nmap <LocalLeader>cu :NeomakeSh cscope -bqR<CR>
au FileType c nmap <LocalLeader>cr :cs reset<CR>
au FileType c nmap <silent> <Leader>ss :call Cscope('0', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>sg :call Cscope('1', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>sd :call Cscope('2', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>sc :call Cscope('3', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>st :call Cscope('4', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>se :call Cscope('6', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>sf :call Cscope('7', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>si :call Cscope('8', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader>sa :call Cscope('9', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>s :call Cscope('0', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>g :call Cscope('1', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>d :call Cscope('2', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>c :call Cscope('3', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>t :call Cscope('4', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>e :call Cscope('6', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>f :call Cscope('7', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>i :call Cscope('8', expand('<cword>'))<CR>
au FileType c nmap <silent> <LocalLeader>a :call Cscope('9', expand('<cword>'))<CR>
au FileType c nmap <silent> <Leader><Leader>ss :call CscopeQuery('0')<CR>
au FileType c nmap <silent> <Leader><Leader>sg :call CscopeQuery('1')<CR>
au FileType c nmap <silent> <Leader><Leader>sd :call CscopeQuery('2')<CR>
au FileType c nmap <silent> <Leader><Leader>sc :call CscopeQuery('3')<CR>
au FileType c nmap <silent> <Leader><Leader>st :call CscopeQuery('4')<CR>
au FileType c nmap <silent> <Leader><Leader>se :call CscopeQuery('6')<CR>
au FileType c nmap <silent> <Leader><Leader>sf :call CscopeQuery('7')<CR>
au FileType c nmap <silent> <Leader><Leader>si :call CscopeQuery('8')<CR>
au FileType c nmap <silent> <Leader><Leader>sa :call CscopeQuery('9')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>s :call CscopeQuery('0')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>g :call CscopeQuery('1')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>d :call CscopeQuery('2')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>c :call CscopeQuery('3')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>t :call CscopeQuery('4')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>e :call CscopeQuery('6')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>f :call CscopeQuery('7')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>i :call CscopeQuery('8')<CR>
au FileType c nmap <silent> <LocalLeader><LocalLeader>a :call CscopeQuery('9')<CR>
augroup END
augroup rust_maps