return { -- volt es requerido por minty (motor de UI) { "nvzone/volt", lazy = true }, { "nvzone/minty", cmd = { "Shades", "Huefy" }, keys = { { "cs", "Shades", desc = "Color Shades Picker" }, { "ch", "Huefy", desc = "Color Hue Picker" }, }, config = function() require("minty").setup({ 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, }, }