diff options
Diffstat (limited to 'lua/pi/lsp/mason.lua')
| -rw-r--r-- | lua/pi/lsp/mason.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lua/pi/lsp/mason.lua b/lua/pi/lsp/mason.lua index 91d0c2b..6c959a6 100644 --- a/lua/pi/lsp/mason.lua +++ b/lua/pi/lsp/mason.lua @@ -1,11 +1,21 @@ local mason_lspconfig = require "mason-lspconfig" local servers = require "pi.lsp.servers" -local lspconfig = require "lspconfig" + +-- Note: This file is deprecated in favor of native LSP configuration +-- Keeping for reference/compatibility local mason_servers = {} +-- Since we're using native LSP, we'll check for executables differently +local server_commands = { + lua_ls = "lua-language-server", + gopls = "gopls", + ts_ls = "typescript-language-server", + -- Add other servers as needed +} + for server, _ in pairs(servers) do - local cmd = lspconfig[server].cmd[1] + local cmd = server_commands[server] or server if vim.fn.executable(cmd) == 0 then table.insert(mason_servers, server) end |