From df7c711e2a49d51249350f52c63274b72aacb739 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sun, 27 Sep 2026 12:46:49 -0300 Subject: =?UTF-8?q?Migraci=C3=B3n=20de=20plugins=20a=20funcionalidad=20nat?= =?UTF-8?q?iva:=20statusline=20y=20treesitter=20propios,=20se=20quitan=20m?= =?UTF-8?q?ason,=20lualine,=20mini,=20notify=20y=20otros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/minty.lua | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'lua/plugins/minty.lua') 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 = "Save": reemplaza el hex bajo el cursor. + -- Aquí añadimos = 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", "", 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, }, -- cgit v1.2.3