From 31d5347cfd66123f115f884ba7ac749c60787609 Mon Sep 17 00:00:00 2001 From: veonim Date: Wed, 28 Jan 2026 13:15:22 +0500 Subject: [PATCH 1/3] fix: changed lua language server, lua_ls no longer exists in mason registry --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index d5ae6dc9..3fa423fc 100644 --- a/init.lua +++ b/init.lua @@ -614,7 +614,7 @@ require('lazy').setup({ -- You can press `g?` for help in this menu. local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { - 'lua_ls', -- Lua Language server + 'lua-language-server', -- Lua Language server 'stylua', -- Used to format Lua code -- You can add other tools here that you want Mason to install }) @@ -628,7 +628,7 @@ require('lazy').setup({ end -- Special Lua Config, as recommended by neovim help docs - vim.lsp.config('lua_ls', { + vim.lsp.config('lua-language-server', { on_init = function(client) if client.workspace_folders then local path = client.workspace_folders[1].name @@ -652,7 +652,7 @@ require('lazy').setup({ Lua = {}, }, }) - vim.lsp.enable 'lua_ls' + vim.lsp.enable 'lua-language-server' end, }, From 9a727e0ca45a32c151ac04b945c09f1da26e282b Mon Sep 17 00:00:00 2001 From: veonim Date: Wed, 28 Jan 2026 14:20:30 +0500 Subject: [PATCH 2/3] fix: Added mason-lspconfig in mason deps --- init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 3fa423fc..63da8271 100644 --- a/init.lua +++ b/init.lua @@ -481,6 +481,7 @@ require('lazy').setup({ -- Mason must be loaded before its dependents so we need to set it up here. -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` { 'mason-org/mason.nvim', opts = {} }, + { 'mason-org/mason-lspconfig.nvim', opts = {} }, 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. @@ -614,7 +615,7 @@ require('lazy').setup({ -- You can press `g?` for help in this menu. local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { - 'lua-language-server', -- Lua Language server + 'lua_ls', -- Lua Language server 'stylua', -- Used to format Lua code -- You can add other tools here that you want Mason to install }) @@ -628,7 +629,7 @@ require('lazy').setup({ end -- Special Lua Config, as recommended by neovim help docs - vim.lsp.config('lua-language-server', { + vim.lsp.config('lua_ls', { on_init = function(client) if client.workspace_folders then local path = client.workspace_folders[1].name @@ -652,7 +653,7 @@ require('lazy').setup({ Lua = {}, }, }) - vim.lsp.enable 'lua-language-server' + vim.lsp.enable 'lua_ls' end, }, From 141a2324e2f4186ec16ea330bf954d4472814e2a Mon Sep 17 00:00:00 2001 From: veonim Date: Mon, 2 Feb 2026 11:51:36 +0500 Subject: [PATCH 3/3] fix: Added comment to explain need of mason-lspconfig --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 63da8271..5a790458 100644 --- a/init.lua +++ b/init.lua @@ -481,7 +481,10 @@ require('lazy').setup({ -- Mason must be loaded before its dependents so we need to set it up here. -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` { 'mason-org/mason.nvim', opts = {} }, + + -- This plugin streamlines Neovim's LSP setup by automating server installation and activation, providing helpful management commands, and mapping mason.nvim packages to nvim-lspconfig configurations. { 'mason-org/mason-lspconfig.nvim', opts = {} }, + 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP.