From 3572f7c755040ea62a5407d828368911110f85c7 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Thu, 24 Nov 2022 12:06:14 -0800 Subject: [PATCH] Alphabetically sort the commands in the plugin --- plugin/lsp.vim | 64 +++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/plugin/lsp.vim b/plugin/lsp.vim index 31b5eb5..ddf43b2 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -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() -command! -nargs=1 -complete=customlist,LspServerDebugComplete -bar LspServerDebug lsp.ServerDebug() -command! -nargs=0 -bar LspGotoDefinition lsp.GotoDefinition(v:false, ) -command! -nargs=0 -bar LspGotoDeclaration lsp.GotoDeclaration(v:false, ) -command! -nargs=0 -bar LspGotoTypeDef lsp.GotoTypedef(v:false, ) -command! -nargs=0 -bar LspGotoImpl lsp.GotoImplementation(v:false, ) -command! -nargs=0 -bar LspPeekDefinition lsp.GotoDefinition(v:true, ) -command! -nargs=0 -bar LspPeekDeclaration lsp.GotoDeclaration(v:true, ) -command! -nargs=0 -bar LspPeekTypeDef lsp.GotoTypedef(v:true, ) -command! -nargs=0 -bar LspPeekImpl lsp.GotoImplementation(v:true, ) -command! -nargs=0 -bar LspShowSignature call LspShowSignature() -command! -nargs=0 -bar LspDiagShow lsp.ShowDiagnostics() +command! -nargs=0 -bar -range LspCodeAction lsp.CodeAction(, ) 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(, , ) +command! -nargs=0 -bar LspGotoDeclaration lsp.GotoDeclaration(v:false, ) +command! -nargs=0 -bar LspGotoDefinition lsp.GotoDefinition(v:false, ) +command! -nargs=0 -bar LspGotoImpl lsp.GotoImplementation(v:false, ) +command! -nargs=0 -bar LspGotoTypeDef lsp.GotoTypedef(v:false, ) 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(, , ) -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, ) +command! -nargs=0 -bar LspPeekDefinition lsp.GotoDefinition(v:true, ) +command! -nargs=0 -bar LspPeekImpl lsp.GotoImplementation(v:true, ) +command! -nargs=0 -bar LspPeekReferences lsp.ShowReferences(v:true) +command! -nargs=0 -bar LspPeekTypeDef lsp.GotoTypedef(v:true, ) command! -nargs=0 -bar LspRename lsp.Rename() -command! -nargs=0 -bar -range LspCodeAction lsp.CodeAction(, ) -command! -nargs=? -bar LspSymbolSearch lsp.SymbolSearch() -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() +command! -nargs=0 -bar LspServerRestart lsp.RestartServer() +command! -nargs=1 -complete=customlist,LspServerTraceComplete -bar LspServerTrace lsp.ServerTraceSet() +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() command! -nargs=1 -bar -complete=dir LspWorkspaceAddFolder lsp.AddWorkspaceFolder() +command! -nargs=0 -bar LspWorkspaceListFolders lsp.ListWorkspaceFolders() command! -nargs=1 -bar -complete=dir LspWorkspaceRemoveFolder lsp.RemoveWorkspaceFolder() # Add the GUI menu entries -- 2.48.1