aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-17 23:00:00 +0200
committerGitHub <noreply@github.com>2021-10-17 23:00:00 +0200
commitf7e9007aa42a4f8ed88e51270b33dd2077365318 (patch)
treed8629ca880d29d313440a984255974a55869ff37 /doc
parentadd vala_ls (#167) (diff)
downloadmason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.gz
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.bz2
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.lz
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.xz
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.zst
mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.zip
add setting for configuring server install dir (#166)
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-lsp-installer.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/nvim-lsp-installer.txt b/doc/nvim-lsp-installer.txt
index 3900f122..f333e456 100644
--- a/doc/nvim-lsp-installer.txt
+++ b/doc/nvim-lsp-installer.txt
@@ -129,11 +129,17 @@ SETTINGS *nvim-lsp-installer-settings*
You can configure certain behavior of nvim-lsp-installer by calling the
`.settings()` function.
+Make sure to provide your settings before any other interactions with
+nvim-lsp-installer!
+
Refer to the |nvim-lsp-installer-default-settings| for all available settings.
Example: >
- require("nvim-lsp-installer").settings {
+ local lsp_installer = require("nvim-lsp-installer")
+
+ -- Provide settings first!
+ lsp_installer.settings {
ui = {
icons = {
server_installed = "✓",
@@ -142,8 +148,9 @@ Example: >
}
}
}
-<
+ lsp_installer.on_server_ready(function (server) server:setup {} end)
+<
*nvim-lsp-installer-default-settings*
The following settings are applied by default. >
@@ -170,6 +177,9 @@ The following settings are applied by default. >
},
},
+ -- The directory in which to install all servers.
+ install_root_dir = path.concat { vim.fn.stdpath "data", "lsp_servers" },
+
pip = {
-- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
-- and is not recommended.