diff options
| author | William Boman <william@redwill.se> | 2021-06-12 00:42:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-12 00:42:57 +0200 |
| commit | bdce08a17e331ea9d481a12d9bf4461c77730363 (patch) | |
| tree | 41c2330eaf1349cd59b3d8773cd33477e6feb56d /doc/nvim-lsp-installer.txt | |
| parent | Server: add get_default_options() method (diff) | |
| download | mason-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.txt | 17 |
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 |
