aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nvim-lsp-installer.txt
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-06-12 00:42:57 +0200
committerGitHub <noreply@github.com>2021-06-12 00:42:57 +0200
commitbdce08a17e331ea9d481a12d9bf4461c77730363 (patch)
tree41c2330eaf1349cd59b3d8773cd33477e6feb56d /doc/nvim-lsp-installer.txt
parentServer: add get_default_options() method (diff)
downloadmason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar.gz
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar.bz2
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar.lz
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar.xz
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.tar.zst
mason-bdce08a17e331ea9d481a12d9bf4461c77730363.zip
add get_server({server_name}) to public Lua API (#24)
Diffstat (limited to 'doc/nvim-lsp-installer.txt')
-rw-r--r--doc/nvim-lsp-installer.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt
index ac16488b..7e7d4998 100644
--- a/doc/nvim-lsp-installer.txt
+++ b/doc/nvim-lsp-installer.txt
@@ -88,6 +88,23 @@ get_uninstalled_servers()
Return: ~
|lsp_installer.Server|[] A list of servers that are not installed.
+ *lsp_installer.get_server()*
+get_server({server_name})
+ Parameters: ~
+ {server_name} (string) The server instance to retrieve.
+
+ Return: ~
+ ok: boolean, server: |lsp_installer.Server|
+
+ Example: ~
+>
+ local lsp_installer = require'nvim-lsp-installer'
+ local ok, rust_server = lsp_installer.get_server("rust_analyzer")
+ if ok then
+ rust_server.install()
+ end
+<
+
*lsp_installer.install()*
install({server_name})
Installs the provided {server_name}. If {server_name} is already installed, it