Call mason-lspconfig.setup to avoid UB

fixes: #2121, resolves: #2128
This commit is contained in:
orip 2026-07-25 20:44:16 +03:00
parent f0a2108ed5
commit 3a2194f210
1 changed files with 5 additions and 0 deletions

View File

@ -750,6 +750,11 @@ do
-- Automatically install LSPs and related tools to stdpath for Neovim
require('mason').setup {}
-- Translates between nvim-lspconfig server names and mason.nvim package names (e.g. lua_ls <-> lua-language-server)
require('mason-lspconfig').setup {
automatic_enable = false, -- Change this to true if you want to automatically enable servers that are installed manually (e.g. via :Mason / :MasonInstall)
}
-- Ensure the servers and tools above are installed
--
-- To check the current status of installed tools and/or manually install