aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2026-09-27 12:46:49 -0300
committerElvis Claros Castro <elvis@claros.ar>2026-09-27 12:46:49 -0300
commitdf7c711e2a49d51249350f52c63274b72aacb739 (patch)
tree426da3b65371f857f3ee3d9893d7ff3279aac02e /lua/pi/lsp
parenta0bd84df02ce235123dfc939327e8bd33dffdd7e (diff)
downloadnvim-conf-df7c711e2a49d51249350f52c63274b72aacb739.tar.gz
nvim-conf-df7c711e2a49d51249350f52c63274b72aacb739.zip
Migración de plugins a funcionalidad nativa: statusline y treesitter propios, se quitan mason, lualine, mini, notify y otros
Diffstat (limited to 'lua/pi/lsp')
-rw-r--r--lua/pi/lsp/attach.lua2
-rw-r--r--lua/pi/lsp/default.lua4
-rw-r--r--lua/pi/lsp/init.lua13
-rw-r--r--lua/pi/lsp/mason.lua33
4 files changed, 1 insertions, 51 deletions
diff --git a/lua/pi/lsp/attach.lua b/lua/pi/lsp/attach.lua
index 7030cbd..e05f3f3 100644
--- a/lua/pi/lsp/attach.lua
+++ b/lua/pi/lsp/attach.lua
@@ -23,7 +23,7 @@ return function(client, bufnr)
vim.keymap.set("n", "gr", function() Snacks.picker.lsp_references() end, { buffer = bufnr, desc = "LSP References of symbol on cursor" })
vim.keymap.set("n", "<leader>pv", function() Snacks.picker.lsp_workspace_symbols() end, { buffer = bufnr, desc = "LSP find symbol on the project" })
vim.keymap.set("n", "<leader>pd", function() Snacks.picker.lsp_symbols() end, { buffer = bufnr, desc = "LSP document symbols" })
- vim.keymap.set("n", "<C-S-[>", function() Snacks.picker.lsp_definitions() end, { buffer = bufnr, desc = "LSP go to definition" })
+ vim.keymap.set("n", "gd", function() Snacks.picker.lsp_definitions() end, { buffer = bufnr, desc = "LSP go to definition" })
vim.bo.omnifunc = "v:lua.vim.lsp.omnifunc"
diff --git a/lua/pi/lsp/default.lua b/lua/pi/lsp/default.lua
index efde87a..1f4dfb0 100644
--- a/lua/pi/lsp/default.lua
+++ b/lua/pi/lsp/default.lua
@@ -35,10 +35,6 @@ local server_commands = {
}
return {
- mason = {
- enable = true,
- auto_install = false,
- },
get_server_cmd = function(server)
return server_commands[server] or { server }
end,
diff --git a/lua/pi/lsp/init.lua b/lua/pi/lsp/init.lua
index de6e95b..ebc8fab 100644
--- a/lua/pi/lsp/init.lua
+++ b/lua/pi/lsp/init.lua
@@ -10,7 +10,6 @@ return {
return orig_open_floating_preview(contents, syntax, opts, ...)
end
- local mason_servers = {}
for server, options in pairs(ops.servers) do
if options.enable == true then
local ok, definition = pcall(require, "pi.lsp.servers." .. server)
@@ -53,19 +52,7 @@ return {
end,
})
end
-
- table.insert(mason_servers, server)
- end
- end
-
- -- Mason
- if ops.mason.enable then
- local mason_ops = {}
- if ops.mason.auto_install == true then
- mason_ops.ensure_installed = mason_servers
end
- local mason_lspconfig = require "mason-lspconfig"
- mason_lspconfig.setup(mason_ops)
end
-- TODO: implement null ls with options
diff --git a/lua/pi/lsp/mason.lua b/lua/pi/lsp/mason.lua
deleted file mode 100644
index 6c959a6..0000000
--- a/lua/pi/lsp/mason.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local mason_lspconfig = require "mason-lspconfig"
-local servers = require "pi.lsp.servers"
-
--- 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 = server_commands[server] or server
- if vim.fn.executable(cmd) == 0 then
- table.insert(mason_servers, server)
- end
-end
-
-mason_lspconfig.setup {
- -- ensure_installed = mason_servers,
-}
-
--- filter the list for the ones not globally installed
--- require("mason-tool-installer").setup {
--- ensure_installed = vim.tbl_filter(function (tool)
--- return vim.fn.executable(tool) == 0
--- end, require "pi.lsp.tools"),
--- }