From e6cdab4e0b1cd3bbcbd54dc263f3e7e570b7b6c3 Mon Sep 17 00:00:00 2001 From: Andreas Louv Date: Tue, 11 Apr 2023 17:04:17 +0200 Subject: [PATCH] Use "LspShowServer capabilities" instead of rollign own function --- autoload/lsp/lsp.vim | 10 ---------- plugin/lsp.vim | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index 4aa4234..0070fa8 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -1007,16 +1007,6 @@ export def DiagHighlightDisable() diag.DiagsHighlightDisable() enddef -# Display the LSP server capabilities -export def ShowServerCapabilities() - var lspserver: dict = buf.CurbufGetServerChecked() - if lspserver->empty() - return - endif - - lspserver.showCapabilities() -enddef - # Function to use with the 'tagfunc' option. export def TagFunc(pat: string, flags: string, info: dict): any var lspserver: dict = buf.CurbufGetServerChecked() diff --git a/plugin/lsp.vim b/plugin/lsp.vim index 37636e3..319a073 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -124,7 +124,7 @@ command! -nargs=1 -complete=customlist,LspServerTraceComplete -bar LspServerTrac command! -nargs=0 -bar LspShowReferences lsp.ShowReferences(v:false) # The :LspShowServerCapabilities command is retained for backward # compatibility. Remove this in the future. -command! -nargs=0 -bar LspShowServerCapabilities lsp.ShowServerCapabilities() +command! -nargs=0 -bar LspShowServerCapabilities :LspShowServer capabilities command! -nargs=? -complete=customlist,LspShowServerComplete -bar LspShowServer lsp.ShowServer() command! -nargs=0 -bar LspShowAllServers lsp.ShowAllServers() command! -nargs=0 -bar LspShowSignature call LspShowSignature() -- 2.48.1