summaryrefslogtreecommitdiff
path: root/vimscript/functions.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-17 00:17:41 -0400
committerChris <[email protected]>2021-03-17 00:17:41 -0400
commit4308a669776cf1ea2703f4ad26dc39c622e847bb (patch)
tree22c7873024c6c2be5e9f976243cd7a9e83c83997 /vimscript/functions.vim
parent7da8f32a958a7dd8947c450db0a9d74af95e866e (diff)
wrap lsp functions in simple commands
Diffstat (limited to 'vimscript/functions.vim')
-rw-r--r--vimscript/functions.vim17
1 files changed, 17 insertions, 0 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()