aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/settings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/settings.lua')
-rw-r--r--lua/nvim-lsp-installer/settings.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua
index 7a61510f..0eff752a 100644
--- a/lua/nvim-lsp-installer/settings.lua
+++ b/lua/nvim-lsp-installer/settings.lua
@@ -20,6 +20,14 @@ local DEFAULT_SETTINGS = {
},
},
+ pip = {
+ -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
+ -- and is not recommended.
+ --
+ -- Example: { "--proxy", "https://proxyserver" }
+ install_args = {},
+ },
+
-- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
-- debugging issues with server installations.
log_level = vim.log.levels.INFO,
@@ -37,10 +45,10 @@ local DEFAULT_SETTINGS = {
local M = {}
+M.current = DEFAULT_SETTINGS
+
function M.set(opts)
- M.current = vim.tbl_deep_extend("force", DEFAULT_SETTINGS, opts)
+ M.current = vim.tbl_deep_extend("force", M.current, opts)
end
-M.current = DEFAULT_SETTINGS
-
return M