aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/settings.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-04-27 21:20:45 +0200
committerGitHub <noreply@github.com>2022-04-27 21:20:45 +0200
commit090c8a87b31de5c5a21eebc55adb22ddab625015 (patch)
tree3c92027c937bcca88547d2654d91f24574653634 /lua/nvim-lsp-installer/settings.lua
parentrun autogen_metadata.lua (diff)
downloadmason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar.gz
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar.bz2
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar.lz
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar.xz
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.tar.zst
mason-090c8a87b31de5c5a21eebc55adb22ddab625015.zip
feat: integrate with lspconfig's on_setup hook (#631)
* feat: integrate with lspconfig's on_setup hook * fix!: don't use aliased installation directories if new .setup() fn is used This makes it so servers are always installed in a directory name that corresponds with the server name. The reason aliased installation directories is supported is lost on me, but it's legacy and complicates things unnecessarily. This is a breaking change for users who previously were using the `.on_server_ready()` hook, and now transitioned to setting up servers directly via lspconfig. These users will need to reinstall the server. * fix: block usage of the deprecated server:setup() method if new setup method is used * fix: allow passing no arg to setup() * docs: ok final.v3 readme
Diffstat (limited to 'lua/nvim-lsp-installer/settings.lua')
-rw-r--r--lua/nvim-lsp-installer/settings.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua
index ad875b72..87499354 100644
--- a/lua/nvim-lsp-installer/settings.lua
+++ b/lua/nvim-lsp-installer/settings.lua
@@ -59,4 +59,8 @@ function M.set(opts)
M.current = vim.tbl_deep_extend("force", M.current, opts)
end
+-- Whether the new .setup() function has been called.
+-- This will temporarily be used as a flag to toggle certain behavior.
+M.uses_new_setup = false
+
return M