summaryrefslogtreecommitdiff
path: root/vimscript
diff options
context:
space:
mode:
Diffstat (limited to 'vimscript')
-rw-r--r--vimscript/functions.vim17
-rw-r--r--vimscript/nv-commentary/init.vim11
-rw-r--r--vimscript/nv-whichkey/init.vim7
3 files changed, 19 insertions, 16 deletions
diff --git a/vimscript/functions.vim b/vimscript/functions.vim
index e69de29b..fa2a6a20 100644
--- a/vimscript/functions.vim
+++ b/vimscript/functions.vim
@@ -0,0 +1,17 @@
+command! LspCodeAction lua require 'function-wrapper'.code_action()
+command! LspDeclaration lua require 'function-wrapper'.declaration()
+command! LspDefinition lua require 'function-wrapper'.definition()
+command! LspDocumentSymbol lua require 'function-wrapper'.document_symbol()
+command! LspFormatting lua require 'function-wrapper'.formatting()
+command! LspFormattingSync lua require 'function-wrapper'.formatting_sync()
+command! LspHover lua require 'function-wrapper'.hover()
+command! LspImplementation lua require 'function-wrapper'.implementation()
+command! LspRangeCodeAction lua require 'function-wrapper'.range_code_action()
+command! LspRangeFormatting lua require 'function-wrapper'.range_formatting()
+command! LspReferences lua require 'function-wrapper'.references()
+command! LspRename lua require 'function-wrapper'.rename()
+command! LspTypeDefinition lua require 'function-wrapper'.type_definition()
+command! LspWorkspaceSymbol lua require 'function-wrapper'.workspace_symbol()
+command! LspGotoNext lua require 'function-wrapper'.goto_next()
+command! LspGotoPrev lua require 'function-wrapper'.goto_prev()
+command! LspShowLineDiagnostics lua require 'function-wrapper'.show_line_diagnostics()
diff --git a/vimscript/nv-commentary/init.vim b/vimscript/nv-commentary/init.vim
deleted file mode 100644
index 76e32b21..00000000
--- a/vimscript/nv-commentary/init.vim
+++ /dev/null
@@ -1,11 +0,0 @@
-function! Comment()
- if (mode() == "n" )
- execute "Commentary"
- else
- execute "'<,'>Commentary"
- endif
- endfunction
-vnoremap <silent> <space>/ :call Comment()
-autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript
-"autocmd FileType javascriptreact setlocal commentstring={/*\ %s\ */}
-
diff --git a/vimscript/nv-whichkey/init.vim b/vimscript/nv-whichkey/init.vim
index 592fbd00..24613d45 100644
--- a/vimscript/nv-whichkey/init.vim
+++ b/vimscript/nv-whichkey/init.vim
@@ -47,17 +47,14 @@ let g:which_key_map['v'] = [ '<C-W>v' ,
let g:which_key_map.a = {
\ 'name' : '+actions' ,
\ 'c' : [':ColorizerToggle' , 'colorizer'],
- \ 'e' : [':CocCommand explorer' , 'explorer'],
\ 'h' : [':let @/ = ""' , 'remove search highlight'],
\ 'l' : [':Bracey' , 'start live server'],
\ 'L' : [':BraceyStop' , 'stop live server'],
\ 'n' : [':set nonumber!' , 'line-numbers'],
\ 's' : [':s/\%V\(.*\)\%V/"\1"/' , 'surround'],
\ 'r' : [':set norelativenumber!' , 'relative line nums'],
- \ 't' : [':FloatermToggle' , 'terminal'],
\ 'v' : [':Codi' , 'virtual repl on'],
\ 'V' : [':Codi!' , 'virtual repl off'],
- \ 'w' : [':StripWhitespace' , 'strip whitespace'],
\ }
" b is for buffer
@@ -188,19 +185,19 @@ let g:which_key_map.l = {
\ 'd' : [':Telescope lsp_document_diagnostics' , 'document diagnostics'],
\ 'D' : [':Telescope lsp_workspace_diagnostics', 'workspace diagnostics'],
\ 'f' : [':LspFormatting' , 'format'],
- \ 'H' : [':Lspsaga signature_help' , 'signature_help'],
\ 'I' : [':LspInfo' , 'lsp info'],
\ 'l' : [':Lspsaga lsp_finder' , 'lsp finder'],
\ 'L' : [':Lspsaga show_line_diagnostics' , 'line_diagnostics'],
\ 'o' : [':Vista!!' , 'outline'],
\ 'p' : [':Lspsaga preview_definition' , 'preview definition'],
\ 'q' : [':Telescope quickfix' , 'quickfix'],
- \ 'r' : [':LspRename' , 'rename'],
+ \ 'r' : [':Lspsaga rename' , 'rename'],
\ 'T' : [':LspTypeDefinition' , 'type defintion'],
\ 'x' : [':cclose' , 'close quickfix'],
\ 's' : [':Telescope lsp_document_symbols' , 'document symbols'],
\ 'S' : [':Telescope lsp_workspace_symbols' , 'workspace symbols'],
\ }
+ " \ 'H' : [':Lspsaga signature_help' , 'signature_help'],
" t is for terminal
let g:which_key_map.t = {