]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Use "LspShowServer capabilities" instead of rollign own function
authorAndreas Louv <andreas@louv.dk>
Tue, 11 Apr 2023 15:04:17 +0000 (17:04 +0200)
committerAndreas Louv <andreas@louv.dk>
Tue, 11 Apr 2023 21:29:32 +0000 (23:29 +0200)
autoload/lsp/lsp.vim
plugin/lsp.vim

index 4aa423443182b71ef1de7ee271d37e2bfa953a54..0070fa86b0a859a2e30f249f28bb0d667dee3a71 100644 (file)
@@ -1007,16 +1007,6 @@ export def DiagHighlightDisable()
   diag.DiagsHighlightDisable()
 enddef
 
-# Display the LSP server capabilities
-export def ShowServerCapabilities()
-  var lspserver: dict<any> = 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>): any
   var lspserver: dict<any> = buf.CurbufGetServerChecked()
index 37636e3064640af06ca688d5868335769ea31d45..319a0736df6aafb04e150800e1bc1a12b894e420 100644 (file)
@@ -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(<q-args>)
 command! -nargs=0 -bar LspShowAllServers lsp.ShowAllServers()
 command! -nargs=0 -bar LspShowSignature call LspShowSignature()