From: shane.xb.qian Date: Wed, 26 Oct 2022 22:06:19 +0000 (+0800) Subject: rename serverStatus to serverRunning X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=78016d970ed40af56aab36223c8ade0a7e05759f;p=vim-lsp.git rename serverStatus to serverRunning --- diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index 9442717..79f59e3 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -111,9 +111,9 @@ export def ShowServers() endfor enddef -# Get LSP server status for filetype 'ftype' +# Get LSP server running status for filetype 'ftype' # Return true if running, or false if not found or not running -export def ServerStatus(ftype: string): bool +export def ServerRunning(ftype: string): bool for [ft, lspserver] in ftypeServerMap->items() if ftype ==# ft return lspserver.running diff --git a/plugin/lsp.vim b/plugin/lsp.vim index 64da174..635328c 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -26,8 +26,8 @@ def g:LspServerReady(): bool return lsp.ServerReady() enddef -def g:LspServerStatus(ftype: string): bool - return lsp.ServerStatus(ftype) +def g:LspServerRunning(ftype: string): bool + return lsp.ServerRunning(ftype) enddef # Command line completion function for the LspSetTrace command.