aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins
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/plugins
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/plugins')
-rw-r--r--lua/plugins/animation.lua11
-rw-r--r--lua/plugins/buffer_manager.lua24
-rw-r--r--lua/plugins/close-buffer.lua12
-rw-r--r--lua/plugins/code-annotation.lua11
-rw-r--r--lua/plugins/codecompanion.lua6
-rw-r--r--lua/plugins/color-picker.lua7
-rw-r--r--lua/plugins/colorize.lua34
-rw-r--r--lua/plugins/completition.lua20
-rw-r--r--lua/plugins/flutter.lua1
-rw-r--r--lua/plugins/gitsigns.lua11
-rw-r--r--lua/plugins/icon-picker.lua9
-rw-r--r--lua/plugins/indent-o-matic.lua5
-rw-r--r--lua/plugins/init.lua11
-rw-r--r--lua/plugins/json-nvim.lua8
-rw-r--r--lua/plugins/laravel.lua8
-rw-r--r--lua/plugins/lsp.lua18
-rw-r--r--lua/plugins/lualine.lua233
-rw-r--r--lua/plugins/menu.lua28
-rw-r--r--lua/plugins/mini.lua7
-rw-r--r--lua/plugins/minty.lua28
-rw-r--r--lua/plugins/navigator.lua41
-rw-r--r--lua/plugins/neorg.lua3
-rw-r--r--lua/plugins/neotest.lua1
-rw-r--r--lua/plugins/noice.lua243
-rw-r--r--lua/plugins/notify.lua10
-rw-r--r--lua/plugins/project-config.lua5
-rw-r--r--lua/plugins/rest.lua55
-rw-r--r--lua/plugins/rustaceanvim.lua14
-rw-r--r--lua/plugins/snacks.lua10
-rw-r--r--lua/plugins/treesitter.lua182
-rw-r--r--lua/plugins/undotree.lua11
31 files changed, 171 insertions, 896 deletions
diff --git a/lua/plugins/animation.lua b/lua/plugins/animation.lua
deleted file mode 100644
index 865287e..0000000
--- a/lua/plugins/animation.lua
+++ /dev/null
@@ -1,11 +0,0 @@
-return {
- "anuvyklack/animation.nvim",
- dependencies = {
- "anuvyklack/middleclass",
- },
- keys = {
- {"<leader>AA", function ()
- require("pi.animations").redraw_buffer()
- end}
- },
-}
diff --git a/lua/plugins/buffer_manager.lua b/lua/plugins/buffer_manager.lua
deleted file mode 100644
index 794e178..0000000
--- a/lua/plugins/buffer_manager.lua
+++ /dev/null
@@ -1,24 +0,0 @@
-return {
- 'j-morano/buffer_manager.nvim',
- dependencies = { 'nvim-lua/plenary.nvim' },
- keys = {
- {
- desc = 'Buffer Manager',
- '<leader>o',
- function() require('buffer_manager.ui').toggle_quick_menu() end,
- },
- {
- desc = 'Next buffer',
- ']b',
- function() require('buffer_manager.ui').nav_next() end,
- },
- {
- desc = 'Previous buffer',
- '[b',
- function() require('buffer_manager.ui').nav_prev() end,
- },
- },
- opts = {
- width = 0.9,
- },
- }
diff --git a/lua/plugins/close-buffer.lua b/lua/plugins/close-buffer.lua
deleted file mode 100644
index 64a6a82..0000000
--- a/lua/plugins/close-buffer.lua
+++ /dev/null
@@ -1,12 +0,0 @@
-return {
- -- Send buffers into early retirement by automatically closing them after x minutes of inactivity.
- {
- "chrisgrieser/nvim-early-retirement",
- config = true,
- event = "VeryLazy",
- opts = {
- -- if a buffer has been inactive for this many minutes, close it
- retirementAgeMins = 120,
- },
- },
-}
diff --git a/lua/plugins/code-annotation.lua b/lua/plugins/code-annotation.lua
index eae61d0..52d0379 100644
--- a/lua/plugins/code-annotation.lua
+++ b/lua/plugins/code-annotation.lua
@@ -9,17 +9,6 @@ if not vim.g.vscode then
end
return {
- -- JsDoc generator
- {
- "heavenshell/vim-jsdoc",
- ft = "javascript,typescript,typescriptreact,svelte",
- cmd = "JsDoc",
- keys = {
- { "<leader>jd", "<cmd>JsDoc<cr>", desc = "JsDoc" },
- },
- -- make sure that you will have lehre install locally on plugin folder, refer https://github.com/heavenshell/vim-jsdoc#manual-installation
- build = "make install",
- },
{
-- A better annotation generator. Supports multiple languages and annotation conventions.
-- <C-n> to jump to next annotation, <C-p> to jump to previous annotation
diff --git a/lua/plugins/codecompanion.lua b/lua/plugins/codecompanion.lua
index 7b805a7..f4230b0 100644
--- a/lua/plugins/codecompanion.lua
+++ b/lua/plugins/codecompanion.lua
@@ -216,36 +216,36 @@ return {
-- },
},
inline = {
+ -- adapter = "llama.cpp",
adapter = {
name ="claude_code",
model = "claude-haiku-4-5",
-- model = "claude-sonnet-4-6",
},
- -- adapter = "llama.cpp",
-- adapter = {
-- name = "copilot",
-- model = "gpt-4.1",
-- },
},
cmd = {
+ -- adapter = "llama.cpp",
adapter = {
name ="claude_code",
model = "claude-haiku-4-5",
-- model = "claude-sonnet-4-6",
},
- -- adapter = "llama.cpp",
-- adapter = {
-- name = "copilot",
-- model = "gpt-4.1",
-- },
},
background = {
+ -- adapter = "llama.cpp"
adapter = {
name ="claude_code",
model = "claude-haiku-4-5",
-- model = "claude-sonnet-4-6",
},
- -- adapter = "llama.cpp"
-- adapter = {
-- name = "copilot",
-- model = "gpt-4.1",
diff --git a/lua/plugins/color-picker.lua b/lua/plugins/color-picker.lua
deleted file mode 100644
index 1e6c88b..0000000
--- a/lua/plugins/color-picker.lua
+++ /dev/null
@@ -1,7 +0,0 @@
-return {
- "ziontee113/color-picker.nvim",
- keys = {
- { "<C-c>", "<cmd>PickColorInsert<cr>", mode = "i", desc = "ColorPicker" },
- },
- config = true,
-}
diff --git a/lua/plugins/colorize.lua b/lua/plugins/colorize.lua
index 41a4006..9f4dcef 100644
--- a/lua/plugins/colorize.lua
+++ b/lua/plugins/colorize.lua
@@ -1,19 +1,23 @@
return {
- 'norcalli/nvim-colorizer.lua',
- config = function()
- require('colorizer').setup({
- 'css',
- 'lua',
- }, {
+ -- Fork mantenido de norcalli/nvim-colorizer.lua (el original usa APIs deprecadas
+ -- y dejaba el aviso "vim.tbl_flatten is deprecated" en cada arranque)
+ 'catgoose/nvim-colorizer.lua',
+ event = 'BufReadPre',
+ opts = {
+ filetypes = {
+ 'css', 'scss', 'sass', 'less', 'html',
+ 'lua', 'javascript', 'typescript',
+ 'toml', 'conf', 'yaml', 'json',
+ },
+ user_default_options = {
RGB = true, -- Colorear valores RGB
- RRGGBB = true, -- Deshabilitar otros formatos
+ RRGGBB = true,
names = false, -- Deshabilitar nombres de colores como "Red"
- RRGGBBAA = true, -- Deshabilitar valores RGBA
- rgb_fn = true, -- Deshabilitar funciones rgb() y rgba()
- hsl_fn = true, -- Deshabilitar funciones hsl() y hsla()
- css = false, -- Deshabilitar otros valores CSS
- css_fn = false, -- Deshabilitar funciones CSS
- })
- end
+ RRGGBBAA = true,
+ rgb_fn = true, -- Funciones rgb() y rgba()
+ hsl_fn = true, -- Funciones hsl() y hsla()
+ css = false,
+ css_fn = false,
+ },
+ },
}
-
diff --git a/lua/plugins/completition.lua b/lua/plugins/completition.lua
index 071c16c..bde2568 100644
--- a/lua/plugins/completition.lua
+++ b/lua/plugins/completition.lua
@@ -155,6 +155,26 @@ return {
-- Experimental signature help support
signature = { enabled = true },
+ cmdline = {
+ enabled = true,
+ keymap = {
+ ["<Tab>"] = { "select_next", "fallback" },
+ ["<S-Tab>"] = { "select_prev", "fallback" },
+ ["<CR>"] = { "accept", "fallback" },
+ ["<C-e>"] = { "cancel", "fallback" },
+ },
+ completion = {
+ list = { selection = { preselect = false, auto_insert = false } },
+ menu = { auto_show = true },
+ },
+ sources = function()
+ local type = vim.fn.getcmdtype()
+ if type == "/" or type == "?" then return { "buffer" } end
+ if type == ":" or type == "@" then return { "cmdline" } end
+ return {}
+ end,
+ },
+
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
fuzzy = { implementation = "prefer_rust_with_warning" },
},
diff --git a/lua/plugins/flutter.lua b/lua/plugins/flutter.lua
index 9d83940..36f2101 100644
--- a/lua/plugins/flutter.lua
+++ b/lua/plugins/flutter.lua
@@ -5,7 +5,6 @@ return
filetype = 'dart',
dependencies = {
'nvim-lua/plenary.nvim',
- 'stevearc/dressing.nvim', -- optional for vim.ui.select
},
config = true,
}
diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua
index 251ab40..6dd6145 100644
--- a/lua/plugins/gitsigns.lua
+++ b/lua/plugins/gitsigns.lua
@@ -4,7 +4,14 @@ return {
opts = {
signcolumn = false,
numhl = true,
- trouble = false,
+ current_line_blame = false, -- arranca apagado; se activa con el toggle
+ current_line_blame_opts = {
+ virt_text = true,
+ virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
+ delay = 300,
+ ignore_whitespace = false,
+ },
+ current_line_blame_formatter = " <author>, <author_time:%R> · <summary>",
on_attach = function(bufnr)
local gitsigns = require "gitsigns"
vim.keymap.set("n", "<leader>hs", gitsigns.stage_hunk, { buffer = bufnr })
@@ -13,6 +20,8 @@ return {
vim.keymap.set("n", "<leader>hp", gitsigns.preview_hunk, { buffer = bufnr })
vim.keymap.set("n", "<leader>hj", gitsigns.next_hunk, { buffer = bufnr })
vim.keymap.set("n", "<leader>hk", gitsigns.prev_hunk, { buffer = bufnr })
+ -- Toggle del blame virtual (autor que modificó la línea)
+ vim.keymap.set("n", "<leader>hb", gitsigns.toggle_current_line_blame, { buffer = bufnr, desc = "Toggle blame línea" })
end,
max_file_length = 10000,
},
diff --git a/lua/plugins/icon-picker.lua b/lua/plugins/icon-picker.lua
deleted file mode 100644
index adb1bb4..0000000
--- a/lua/plugins/icon-picker.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return {
- "ziontee113/icon-picker.nvim",
- keys = {
- { "<Leader><Leader>i", "<cmd>IconPickerNormal nerd_font<cr>", mode = "n", desc = "IconPicker NerdFont Insert" },
- { "<Leader><Leader>y", "<cmd>IconPickerYank nerd_font<cr>", mode = "n", desc = "IconPicker NerdFont Yank" },
- { "<C-o>", "<cmd>IconPickerInsert nerd_font emoji alt_font nerd_font_v3 symbols <cr>", mode = "i", desc = "IconPicker NerdFont Insert mode" },
- },
- opts = { disable_legacy_commands = true },
-}
diff --git a/lua/plugins/indent-o-matic.lua b/lua/plugins/indent-o-matic.lua
deleted file mode 100644
index 39b53d3..0000000
--- a/lua/plugins/indent-o-matic.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-return {
- 'Darazaki/indent-o-matic',
- event = 'BufReadPre',
- opts = {},
- }
diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua
index 3df2c55..dc3715b 100644
--- a/lua/plugins/init.lua
+++ b/lua/plugins/init.lua
@@ -1,15 +1,4 @@
return {
- {
- "jwalton512/vim-blade",
- enabled = false,
- },
- {
- "tpope/vim-dispatch",
- cmd = { "Make", "Dispatch" },
- },
"tpope/vim-surround",
"tpope/vim-repeat",
- "tpope/vim-rhubarb",
- "tpope/vim-dotenv",
- "tpope/vim-eunuch",
}
diff --git a/lua/plugins/json-nvim.lua b/lua/plugins/json-nvim.lua
deleted file mode 100644
index 3866e1b..0000000
--- a/lua/plugins/json-nvim.lua
+++ /dev/null
@@ -1,8 +0,0 @@
-return {
- "VPavliashvili/json-nvim",
- ft = "json", -- only load for json filetype
- config = function()
- vim.keymap.set("n", "<leader>jff", "<cmd>JsonFormatFile<cr>")
- vim.keymap.set("n", "<leader>jmf", "<cmd>JsonMinifyFile<cr>")
- end,
-}
diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua
index b158221..e524698 100644
--- a/lua/plugins/laravel.lua
+++ b/lua/plugins/laravel.lua
@@ -1,8 +1,6 @@
return {
"adalessa/laravel.nvim",
dependencies = {
- "rcarriga/nvim-notify",
- "nvim-telescope/telescope.nvim",
"MunifTanjim/nui.nvim",
},
cmd = { "Sail", "Artisan", "Composer", "Npm", "Laravel", "LaravelInfo", "DockerCompose" },
@@ -28,6 +26,11 @@ return {
local user_arg = string.format("%s:%s", vim.trim(uid), vim.trim(gid))
require("laravel").setup {
+ features = {
+ pickers = {
+ provider = "snacks",
+ },
+ },
route_info = {
position = "top",
},
@@ -40,6 +43,5 @@ return {
},
},
}
- require("telescope").load_extension "laravel"
end,
}
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 57e1b09..4448b91 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -14,26 +14,10 @@ return {
event = "VeryLazy",
},
{
- "williamboman/mason-lspconfig.nvim",
- event = "VeryLazy",
- dependencies = {
- "neovim/nvim-lspconfig",
- },
- },
- {
- "WhoIsSethDaniel/mason-tool-installer.nvim",
- event = "VeryLazy",
- },
- {
name = "native-lsp",
dir = vim.fn.stdpath("config"),
event = "VeryLazy",
main = "pi.lsp",
- opts = {
- mason = {
- enable = true,
- auto_install = false,
- },
- },
+ opts = {},
},
}
diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua
deleted file mode 100644
index 9409537..0000000
--- a/lua/plugins/lualine.lua
+++ /dev/null
@@ -1,233 +0,0 @@
-return {
- "nvim-lualine/lualine.nvim",
- dependencies = { "nvim-tree/nvim-web-devicons" },
- config = function()
- local native_colorscheme = require "config.native-colorscheme"
- local colors = native_colorscheme.colors
- local config = { lualine_bold = true } -- Default config since we're not using solarized-osaka plugin
-
- local personal_colors = {
- normal = {
- a = { bg = colors.base03, fg = colors.blue100 },
- b = { bg = colors.fg, fg = colors.bg },
- c = { bg = colors.bg_statusline, fg = colors.fg },
- },
- insert = {
- a = { bg = colors.base03, fg = colors.green100 },
- },
-
- command = {
- a = { bg = colors.base03, fg = colors.yellow100 },
- },
-
- visual = {
- a = { bg = colors.base03, fg = colors.magenta100 },
- },
-
- replace = {
- a = { bg = colors.base03, fg = colors.red100 },
- },
-
- terminal = {
- a = { bg = colors.base03, fg = colors.orange100 },
- },
-
- inactive = {
- a = { bg = colors.bg_statusline, fg = colors.blue },
- b = { bg = colors.bg_statusline, fg = colors.fg, gui = "bold" },
- c = { bg = colors.bg_statusline, fg = colors.fg },
- },
- }
-
- for _, mode in pairs(personal_colors) do
- if config.lualine_bold then
- mode.a.gui = "bold"
- end
- end
-
- -- local empty = require('lualine.component'):extend()
-
- -- local function jarak()
- -- return ' '
- -- end
-
- local empty = require("lualine.component"):extend()
- function empty:draw(default_highlight)
- self.status = ""
- self.applied_separator = ""
- self:apply_highlights(default_highlight)
- self:apply_section_separators()
- return self.status
- end
-
- local function process_sections(sections)
- for name, section in pairs(sections) do
- local left = name:sub(9, 10) < "x"
- for pos = 1, name ~= "lualine_z" and #section or #section - 1 do
- table.insert(section, pos * 2, { empty, color = { fg = colors.base03, bg = colors.base03 } })
- end
- for id, comp in ipairs(section) do
- if type(comp) ~= "table" then
- comp = { comp }
- section[id] = comp
- end
- -- comp.separator = left and { right = '' } or { left = '' }
- comp.separator = left and { right = " " } or { left = " " }
- -- comp.separator = {left = '' } and { right = '' }
- end
- end
- return sections
- end
-
- local lazy_status = require "lazy.status"
-
- require("lualine").setup {
- options = {
- theme = personal_colors,
- -- icons_enabled = true,
- -- component_separators = { left = '>', right = '┇' },
- -- section_separators = {left = '', right = '' },
- },
- sections = process_sections {
- lualine_a = {
- {
- "mode",
- icons_enabled = true,
- icon = {
- " ",
- color = { fg = colors.base4, bg = colors.base03, gui = "bold" },
- },
- -- color = { fg = colors.base0, bg = colors.green300, gui = 'bold' },
- -- separator = { left = '', right = '' },
- -- left_padding = 2, right_padding = 0,
- },
- },
- -- lualine_b = { 'filename', 'branch' },
- lualine_b = {
- {
- "branch",
- -- separator = { left = '', right = '' },
- -- left_padding = 0, right_padding = 2,
- icon = {
- "",
- -- align = 'left',
- color = { fg = colors.orange100, bg = colors.base03, gui = "bold" },
- -- -- separator = {left = '', right = ''}
- },
- -- left_padding = 0,
- color = { fg = colors.orange100, bg = colors.base03, gui = "bold" },
- },
- {
- "diff",
- -- separator = { right = '',left = ''},
- colored = true,
- symbols = { added = " ", modified = " ", removed = " " },
- diff_color = {
- added = { fg = colors.green300, bg = colors.base03, gui = "bold" },
- modified = { fg = colors.yellow300, bg = colors.base03, gui = "bold" },
- removed = { fg = colors.red300, bg = colors.base03, gui = "bold" },
- },
- },
- },
- lualine_c = {
- {
- "filename",
- on_click = function()
- Snacks.picker.files()
- -- print('file name clicked')
- end,
- icon = " ",
- color = { fg = colors.yellow100, bg = colors.base03, gui = "bold" },
- path = 4,
- file_status = false,
- -- separator = { right = '┇', left = '┇'},
- },
- },
- lualine_x = {
- {
- "diagnostics",
- on_click = function()
- Snacks.picker.diagnostics()
- end,
- -- separator = { left = '' },
- sources = { "nvim_diagnostic" },
- sections = { "error", "warn", "info", "hint" },
-
- diagnostics_color = {
- error = { fg = colors.red300, bg = colors.base03, gui = "bold" }, -- Changes diagnostics' error color.
- added = { fg = colors.green300, bg = colors.base03, gui = "bold" },
- warn = { fg = colors.yellow300, bg = colors.base03, gui = "bold" }, -- Changes diagnostics' warn color.
- info = { fg = colors.blue300, bg = colors.base03, gui = "bold" }, -- Changes diagnostics' info color.
- hint = { fg = colors.cyan300, bg = colors.base03, gui = "bold" }, -- Changes diagnostics' hint color.
- },
- symbols = { error = " ", warn = " ", hint = "󰠠 ", info = " " },
- colored = true, -- Displays diagnostics status in color if set to true.
- update_in_insert = true, -- Update diagnostics in insert mode. default = false
- always_visible = false, -- Show diagnostics even if there are none.
- },
- {
- lazy_status.updates,
- cond = lazy_status.has_updates,
- color = { fg = colors.orange300 },
- },
- {
- -- code from https://github.com/nvim-lualine/lualine.nvim/blob/566b7036f717f3d676362742630518a47f132fff/examples/evil_lualine.lua
- -- Lsp server name .
- function()
- local msg = "No LSP"
- local buf_ft = vim.api.nvim_get_option_value("filetype", { buf = 0 })
- local clients = vim.lsp.get_clients()
- if next(clients) == nil then
- return msg
- end
- for _, client in ipairs(clients) do
- local filetypes = client.config.filetypes
- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
- return client.name
- end
- end
- return msg
- end,
- -- icon = ' LSP:',
- -- icon = {' ', color = {bg = colors.base03, fg = colors.red100}},
- -- separator = { left = '', right = ''},
- -- separator = { left = ' ', right = ' '},
- color = { fg = colors.base4, gui = "bold", bg = colors.base03 },
- },
-
- {
- "filetype",
- color = { bg = colors.base03, fg = colors.magenta100, gui = "bold" },
- -- separator = { left = '', right = ' ' },
- },
- },
- lualine_y = {
- {
- "progress",
- left_padding = 0,
- color = { bg = colors.base03, fg = colors.cyan100, gui = "bold" },
- },
- },
- lualine_z = {
- {
- -- 'location',
- -- function()
- -- return "Ln:%l Col:%c"
- -- end
- -- separator = { right = '' }, left_padding = 2 },
- },
- },
- },
- inactive_sections = {
- lualine_a = {},
- lualine_b = {},
- lualine_c = { "filename" },
- lualine_x = { "location" },
- lualine_y = {},
- lualine_z = {},
- },
- tabline = {},
- extensions = {},
- }
- end,
-}
diff --git a/lua/plugins/menu.lua b/lua/plugins/menu.lua
deleted file mode 100644
index aa5a4d1..0000000
--- a/lua/plugins/menu.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-return {
- -- Dependency required by nvzone/menu
- { "nvzone/volt", lazy = true },
-
- {
- "nvzone/menu",
- lazy = true,
- keys = {
- {
- "<leader>um",
- function()
- local ok, menu = pcall(require, "menu")
- if not ok then
- vim.notify("menu.nvim no disponible", vim.log.levels.ERROR)
- return
- end
- local ok_items, items = pcall(require, "menus.oil")
- if not ok_items then
- vim.notify("menus.oil no encontrado", vim.log.levels.ERROR)
- return
- end
- menu.open(items)
- end,
- desc = "Abrir menú de Oil",
- },
- },
- },
-}
diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua
deleted file mode 100644
index 3fa0493..0000000
--- a/lua/plugins/mini.lua
+++ /dev/null
@@ -1,7 +0,0 @@
-return {
- 'echasnovski/mini.nvim',
- dependencies = {
- 'echasnovski/mini.icons',
- },
- version = false
-}
diff --git a/lua/plugins/minty.lua b/lua/plugins/minty.lua
index 87a15bc..cb1775f 100644
--- a/lua/plugins/minty.lua
+++ b/lua/plugins/minty.lua
@@ -1,5 +1,5 @@
return {
- -- volt is required by minty
+ -- volt es requerido por minty (motor de UI)
{ "nvzone/volt", lazy = true },
{
@@ -11,8 +11,30 @@ return {
},
config = function()
require("minty").setup({
- -- Configuraciones opcionales
- -- Por ejemplo, para auto-insertar el color seleccionado
+ huefy = {
+ border = false,
+ position = "cursor", -- cursor | center | func(w, h)
+
+ -- Hook (no documentado) para añadir teclas dentro del picker.
+ -- minty ya trae <C-s> = "Save": reemplaza el hex bajo el cursor.
+ -- Aquí añadimos <C-y> = insertar el color elegido en el cursor,
+ -- útil cuando NO hay un hex debajo para reemplazar.
+ mappings = function(bufs)
+ local state = require("minty.huefy.state")
+ for _, buf in ipairs(bufs) do
+ vim.keymap.set("n", "<C-y>", function()
+ local hex = "#" .. state.new_hex
+ require("volt").close()
+ vim.api.nvim_put({ hex }, "c", true, true)
+ end, { buffer = buf, desc = "Minty: insertar color en el cursor" })
+ end
+ end,
+ },
+
+ shades = {
+ border = true,
+ position = "cursor",
+ },
})
end,
},
diff --git a/lua/plugins/navigator.lua b/lua/plugins/navigator.lua
deleted file mode 100644
index 954dfeb..0000000
--- a/lua/plugins/navigator.lua
+++ /dev/null
@@ -1,41 +0,0 @@
--- [[
--- Use <c-e> or :q! to kill the floating window
--- <up/down> (or <c-n>, <c-p>) to move
--- <c-o> or <CR> to open location or apply code actions. Note: <CR> might be bound in insert mode by other plugins
--- ]]
-return {
- {
- "ray-x/navigator.lua",
- event = "LspAttach",
- dependencies = {
- { "ray-x/guihua.lua", build = "cd lua/fzy && make" },
- },
- opts = {
- default_mapping = false,
- lsp = {
- disable_lsp = "all", -- Uses native LSP configuration instead of lspconfig
- format_on_save = false,
- hover = {
- enable = false,
- },
- },
- },
- -- Refer more usage on https://raw.githubusercontent.com/ray-x/navigator.lua/master/lua/navigator/lspclient/mapping.lua
- keys = {
- { "<leader>gr", ":lua require'navigator.reference'.async_ref()<cr>", desc = "Navigator - Async reference" },
- { "<leader>gS", ":lua require'navigator.symbols'.document_symbols()<cr>", desc = "Navigator - Document symbols" },
- {
- "<leader>gw",
- ":lua require'navigator.workspace'.workspace_symbol_live()<cr>",
- desc = "Navigator - workspace symbols live",
- },
- { "<leader>gd", ":lua require'navigator.definition'.definition()<cr>", desc = "Navigator - Definition" },
- {
- "<leader>gp",
- ":lua require'navigator.definition'.definition_preview()<cr>",
- desc = "Navigator - Definition preview",
- },
- { "<leader>ga", ":lua require'navigator.codeAction'.code_action()<cr>", desc = "Navigator - Code Action" },
- },
- },
-}
diff --git a/lua/plugins/neorg.lua b/lua/plugins/neorg.lua
index bf27994..4fc6e10 100644
--- a/lua/plugins/neorg.lua
+++ b/lua/plugins/neorg.lua
@@ -1,6 +1,7 @@
return {
"nvim-neorg/neorg",
- build = ":Neorg sync-parsers",
+ -- `:Neorg sync-parsers` usa `nvim-treesitter.install`, que no existe en la
+ -- rama `main`. Los parsers norg/norg_meta se instalan aparte (scanner en C++).
cmd = { "Neorg" },
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
diff --git a/lua/plugins/neotest.lua b/lua/plugins/neotest.lua
index c00f12e..e953dae 100644
--- a/lua/plugins/neotest.lua
+++ b/lua/plugins/neotest.lua
@@ -5,7 +5,6 @@ return {
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
- "antoinemadec/FixCursorHold.nvim",
"nvim-neotest/neotest-go",
"nvim-neotest/neotest-plenary",
"nvim-neotest/neotest-vim-test",
diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua
index 57dd934..88b9319 100644
--- a/lua/plugins/noice.lua
+++ b/lua/plugins/noice.lua
@@ -1,4 +1,6 @@
return {
+ -- Noice mínimo: SOLO la cmdline centrada (popup) y su menú de completado.
+ -- Mensajes, notificaciones y LSP