aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-03 21:36:21 +0200
committerWilliam Boman <william@redwill.se>2022-05-12 21:23:48 +0200
commitb8a02bf2ec173c48d207644089e3b6879e8c4e9e (patch)
tree16f9cab9919b9047684bcf54c3a6f21f69a16d16 /lua
parentrun autogen_metadata.lua (diff)
downloadmason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar.gz
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar.bz2
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar.lz
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar.xz
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.tar.zst
mason-b8a02bf2ec173c48d207644089e3b6879e8c4e9e.zip
docs: add comments mentioning ensure_installed has no relation with automatic_installation
ensure_installed is used as a hard-coded list of servers to always install, no matter if they're setup or not. automatic_installation is used to automatically detect which servers needs to be installed, based on which servers are setup via lspconfig.
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/settings.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua
index 92f80003..e346763f 100644
--- a/lua/nvim-lsp-installer/settings.lua
+++ b/lua/nvim-lsp-installer/settings.lua
@@ -4,16 +4,21 @@ local M = {}
---@class LspInstallerSettings
local DEFAULT_SETTINGS = {
- -- A list of servers to automatically install. Example: { "rust_analyzer", "sumneko_lua" }
+ -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer", "sumneko_lua" }
+ -- This setting has no relation with the `automatic_installation` setting.
ensure_installed = {},
+
-- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed.
+ -- This setting has no relation with the `ensure_installed` setting.
-- Can either be:
-- - false: Servers are not automatically installed.
-- - true: All servers set up via lspconfig are automatically installed.
-- - { exclude: string[] }: All servers set up via lspconfig, except the ones provided in the list, are automatically installed.
-- Example: automatic_installation = { exclude = { "rust_analyzer", "solargraph" } }
automatic_installation = false,
+
ui = {
+
icons = {
-- The list icon to use for installed servers.
server_installed = "◍",