From 13d5041a8a7de0ac20fc8dcfc3b701a257f0516b Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 28 Dec 2019 11:28:26 +0530 Subject: [PATCH] nvim: init.vim: Fix & update purescript key bindings Signed-off-by: Sanchayan Maity --- nvim/init.vim | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 2115464..af7247d 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -380,17 +380,19 @@ augroup END augroup psc_ide_maps au! - au FileType purescript nmap pt :call Ptype(PgetKeyword(), v:true) - au FileType purescript nmap pT :call PaddTypeAnnotation(matchstr(getline(line(".")), '^\s*\zs\k\+\ze')) - au FileType purescript nmap ps :call PapplySuggestion() - au FileType purescript nmap pa :call PaddTypeAnnotation() - au FileType purescript nmap pi :call PimportIdentifier(PgetKeyword()) - au FileType purescript nmap pr :call Pload() - au FileType purescript nmap pp :call Ppursuit(PgetKeyword()) - au FileType purescript nmap pq :call PaddImportQualifications() - au FileType purescript nmap pQ :call PremoveImportQualifications() - au FileType purescript nmap pg :call PgoToDefinition(PgetKeyword()) - au FileType purescript nmap pc :call PcaseSplit + au FileType purescript nmap L :Plist + au FileType purescript nmap l :Pload + au FileType purescript nmap r :Prebuild + au FileType purescript nmap f :PaddClause + au FileType purescript nmap T :PaddType + au FileType purescript nmap a :Papply + au FileType purescript nmap c :Pcase + au FileType purescript nmap i :Pimport + au FileType purescript nmap q :PaddImportQualifications + au FileType purescript nmap g :Pgoto + au FileType purescript nmap p :Pursuit + au FileType purescript nmap t :Ptype + au FileType purescript au BufWritePost Prebuild augroup END augroup c_maps