]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Alphabetically sort the commands in the plugin
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 24 Nov 2022 20:06:14 +0000 (12:06 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 24 Nov 2022 20:06:14 +0000 (12:06 -0800)
plugin/lsp.vim

index 31b5eb5f951fc99c8c125ac8bb9818e70bab4c2b..ddf43b2aa5ea810a817d153378205221df898d80 100644 (file)
@@ -77,49 +77,49 @@ augroup END
 # autocmd VimLeavePre * call lsp.StopAllServers()
 
 # LSP commands
-command! -nargs=0 -bar LspShowServers lsp.ShowServers()
-command! -nargs=0 -bar LspShowServerCapabilities lsp.ShowServerCapabilities()
-command! -nargs=0 -bar LspServerRestart lsp.RestartServer()
-command! -nargs=1 -complete=customlist,LspServerTraceComplete -bar LspServerTrace lsp.ServerTraceSet(<q-args>)
-command! -nargs=1 -complete=customlist,LspServerDebugComplete -bar LspServerDebug lsp.ServerDebug(<q-args>)
-command! -nargs=0 -bar LspGotoDefinition lsp.GotoDefinition(v:false, <q-mods>)
-command! -nargs=0 -bar LspGotoDeclaration lsp.GotoDeclaration(v:false, <q-mods>)
-command! -nargs=0 -bar LspGotoTypeDef lsp.GotoTypedef(v:false, <q-mods>)
-command! -nargs=0 -bar LspGotoImpl lsp.GotoImplementation(v:false, <q-mods>)
-command! -nargs=0 -bar LspPeekDefinition lsp.GotoDefinition(v:true, <q-mods>)
-command! -nargs=0 -bar LspPeekDeclaration lsp.GotoDeclaration(v:true, <q-mods>)
-command! -nargs=0 -bar LspPeekTypeDef lsp.GotoTypedef(v:true, <q-mods>)
-command! -nargs=0 -bar LspPeekImpl lsp.GotoImplementation(v:true, <q-mods>)
-command! -nargs=0 -bar LspShowSignature call LspShowSignature()
-command! -nargs=0 -bar LspDiagShow lsp.ShowDiagnostics()
+command! -nargs=0 -bar -range LspCodeAction lsp.CodeAction(<line1>, <line2>)
 command! -nargs=0 -bar LspDiagCurrent lsp.LspShowCurrentDiag()
 command! -nargs=0 -bar LspDiagFirst lsp.JumpToDiag('first')
+command! -nargs=0 -bar LspDiagHighlightDisable lsp.DiagHighlightDisable()
+command! -nargs=0 -bar LspDiagHighlightEnable lsp.DiagHighlightEnable()
 command! -nargs=0 -bar LspDiagNext lsp.JumpToDiag('next')
 command! -nargs=0 -bar LspDiagPrev lsp.JumpToDiag('prev')
-command! -nargs=0 -bar LspDiagHighlightEnable lsp.DiagHighlightEnable()
-command! -nargs=0 -bar LspDiagHighlightDisable lsp.DiagHighlightDisable()
-command! -nargs=0 -bar LspShowReferences lsp.ShowReferences(v:false)
-command! -nargs=0 -bar LspPeekReferences lsp.ShowReferences(v:true)
-# Clangd specifc extension to switch from one C/C++ source file to a
-# corresponding header file
-command! -nargs=0 -bar LspSwitchSourceHeader lsp.SwitchSourceHeader()
+command! -nargs=0 -bar LspDiagShow lsp.ShowDiagnostics()
+command! -nargs=0 -bar LspFold lsp.FoldDocument()
+command! -nargs=0 -bar -range=% LspFormat lsp.TextDocFormat(<range>, <line1>, <line2>)
+command! -nargs=0 -bar LspGotoDeclaration lsp.GotoDeclaration(v:false, <q-mods>)
+command! -nargs=0 -bar LspGotoDefinition lsp.GotoDefinition(v:false, <q-mods>)
+command! -nargs=0 -bar LspGotoImpl lsp.GotoImplementation(v:false, <q-mods>)
+command! -nargs=0 -bar LspGotoTypeDef lsp.GotoTypedef(v:false, <q-mods>)
 command! -nargs=0 -bar LspHighlight call LspDocHighlight()
 command! -nargs=0 -bar LspHighlightClear call LspDocHighlightClear()
-command! -nargs=0 -bar LspOutline lsp.Outline()
-command! -nargs=0 -bar -range=% LspFormat lsp.TextDocFormat(<range>, <line1>, <line2>)
-command! -nargs=0 -bar LspOutgoingCalls lsp.OutgoingCalls()
+command! -nargs=0 -bar LspHover lsp.Hover()
 command! -nargs=0 -bar LspIncomingCalls lsp.IncomingCalls()
-command! -nargs=0 -bar LspSuperTypeHierarchy lsp.TypeHierarchy(1)
-command! -nargs=0 -bar LspSubTypeHierarchy lsp.TypeHierarchy(0)
+command! -nargs=0 -bar LspOutgoingCalls lsp.OutgoingCalls()
+command! -nargs=0 -bar LspOutline lsp.Outline()
+command! -nargs=0 -bar LspPeekDeclaration lsp.GotoDeclaration(v:true, <q-mods>)
+command! -nargs=0 -bar LspPeekDefinition lsp.GotoDefinition(v:true, <q-mods>)
+command! -nargs=0 -bar LspPeekImpl lsp.GotoImplementation(v:true, <q-mods>)
+command! -nargs=0 -bar LspPeekReferences lsp.ShowReferences(v:true)
+command! -nargs=0 -bar LspPeekTypeDef lsp.GotoTypedef(v:true, <q-mods>)
 command! -nargs=0 -bar LspRename lsp.Rename()
-command! -nargs=0 -bar -range LspCodeAction lsp.CodeAction(<line1>, <line2>)
-command! -nargs=? -bar LspSymbolSearch lsp.SymbolSearch(<q-args>)
-command! -nargs=0 -bar LspHover lsp.Hover()
 command! -nargs=0 -bar LspSelectionExpand lsp.SelectionExpand()
 command! -nargs=0 -bar LspSelectionShrink lsp.SelectionShrink()
-command! -nargs=0 -bar LspFold lsp.FoldDocument()
-command! -nargs=0 -bar LspWorkspaceListFolders lsp.ListWorkspaceFolders()
+command! -nargs=1 -complete=customlist,LspServerDebugComplete -bar LspServerDebug lsp.ServerDebug(<q-args>)
+command! -nargs=0 -bar LspServerRestart lsp.RestartServer()
+command! -nargs=1 -complete=customlist,LspServerTraceComplete -bar LspServerTrace lsp.ServerTraceSet(<q-args>)
+command! -nargs=0 -bar LspShowReferences lsp.ShowReferences(v:false)
+command! -nargs=0 -bar LspShowServerCapabilities lsp.ShowServerCapabilities()
+command! -nargs=0 -bar LspShowServers lsp.ShowServers()
+command! -nargs=0 -bar LspShowSignature call LspShowSignature()
+# Clangd specifc extension to switch from one C/C++ source file to a
+# corresponding header file
+command! -nargs=0 -bar LspSubTypeHierarchy lsp.TypeHierarchy(0)
+command! -nargs=0 -bar LspSuperTypeHierarchy lsp.TypeHierarchy(1)
+command! -nargs=0 -bar LspSwitchSourceHeader lsp.SwitchSourceHeader()
+command! -nargs=? -bar LspSymbolSearch lsp.SymbolSearch(<q-args>)
 command! -nargs=1 -bar -complete=dir LspWorkspaceAddFolder lsp.AddWorkspaceFolder(<q-args>)
+command! -nargs=0 -bar LspWorkspaceListFolders lsp.ListWorkspaceFolders()
 command! -nargs=1 -bar -complete=dir LspWorkspaceRemoveFolder lsp.RemoveWorkspaceFolder(<q-args>)
 
 # Add the GUI menu entries