fix(lsp): don't remove mason-lspconfig's hook (#3739)

This commit is contained in:
LostNeophyte 2023-01-17 16:35:06 +01:00 committed by GitHub
parent b97298ccf5
commit 5c3d76c7f6
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,9 +112,10 @@ function M.setup()
pcall(function() pcall(function()
require("mason-lspconfig").setup(lvim.lsp.installer.setup) require("mason-lspconfig").setup(lvim.lsp.installer.setup)
local util = require "lspconfig.util"
-- automatic_installation is handled by lsp-manager -- automatic_installation is handled by lsp-manager
util.on_setup = nil local settings = require "mason-lspconfig.settings"
settings.current.automatic_installation = false
end) end)
require("lvim.lsp.null-ls").setup() require("lvim.lsp.null-ls").setup()