From 3a2194f210f6accb7afae4484149554d22b38d0a Mon Sep 17 00:00:00 2001 From: orip Date: Sat, 25 Jul 2026 20:44:16 +0300 Subject: [PATCH] Call mason-lspconfig.setup to avoid UB fixes: #2121, resolves: #2128 --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index aff5250e..666cab54 100644 --- a/init.lua +++ b/init.lua @@ -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