From 4308a669776cf1ea2703f4ad26dc39c622e847bb Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 17 Mar 2021 00:17:41 -0400 Subject: wrap lsp functions in simple commands --- vimscript/functions.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'vimscript/functions.vim') 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() -- cgit v1.2.3