nvim: init.vim: Fix & update purescript key bindings

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-12-28 11:28:26 +05:30
parent fb96c1af6c
commit 13d5041a8a

View file

@ -380,17 +380,19 @@ augroup END
augroup psc_ide_maps
au!
au FileType purescript nmap <buffer> <silent> <Leader>pt :<C-U>call Ptype(PgetKeyword(), v:true)<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pT :<C-U>call PaddTypeAnnotation(matchstr(getline(line(".")), '^\s*\zs\k\+\ze'))<CR>
au FileType purescript nmap <buffer> <silent> <Leader>ps :<C-U>call PapplySuggestion()<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pa :<C-U>call PaddTypeAnnotation()<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pi :<C-U>call PimportIdentifier(PgetKeyword())<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pr :<C-U>call Pload()<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pp :<C-U>call Ppursuit(PgetKeyword())<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pq :<C-U>call PaddImportQualifications()<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pQ :<C-U>call PremoveImportQualifications()<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pg :<C-U>call PgoToDefinition(PgetKeyword())<CR>
au FileType purescript nmap <buffer> <silent> <Leader>pc :<C-U>call PcaseSplit<SPACE>
au FileType purescript nmap <buffer> <silent> <LocalLeader>L :Plist<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>l :Pload<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>r :Prebuild<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>f :PaddClause<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>T :PaddType<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>a :Papply<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>c :Pcase<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>i :Pimport<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>q :PaddImportQualifications<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>g :Pgoto<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>p :Pursuit<CR>
au FileType purescript nmap <buffer> <silent> <LocalLeader>t :Ptype<CR>
au FileType purescript au BufWritePost <buffer> Prebuild
augroup END
augroup c_maps