return {}
endif
- # LSP server is configured to be a provider for 'feature'
+ # LSP server is configured to be a provider for "feature"
for lspserver in possibleLSPs
if lspserver.features->has_key(feature) && lspserver.features[feature]
return lspserver
return {}
enddef
-# Returns the LSP server for the buffer 'bnr' and with ID 'id'. Returns an empty
+# Returns the LSP server for the buffer "bnr" and with ID "id". Returns an empty
# dict if the server is not found.
export def BufLspServerGetById(bnr: number, id: number): dict<any>
if !bufnrToServers->has_key(bnr)
return {}
enddef
-# Returns the LSP servers for the buffer 'bnr'. Returns an empty list if the
+# Returns the LSP servers for the buffer "bnr". Returns an empty list if the
# servers are not found.
export def BufLspServersGet(bnr: number): list<dict<any>>
if !bufnrToServers->has_key(bnr)
return bufnrToServers[bnr]
enddef
-# Returns the LSP server for the current buffer with the optionally 'feature'.
+# Returns the LSP server for the current buffer with the optionally "feature".
# Returns an empty dict if the server is not found.
export def CurbufGetServer(feature: string = null_string): dict<any>
return BufLspServerGet(bufnr(), feature)
return !lspserver->empty()
enddef
-# Returns the LSP server for the current buffer with the optinally 'feature' if
+# Returns the LSP server for the current buffer with the optinally "feature" if
# it is running and is ready.
# Returns an empty dict if the server is not found or is not ready.
export def CurbufGetServerChecked(feature: string = null_string): dict<any>