Files
dotfiles_arch/nvim/.config/nvim/lua/plugins.inactive/dressing.lua
2026-02-05 13:46:21 +01:00

47 lines
1.1 KiB
Lua

-- dressing.lua: Enhances UI elements like input boxes and select menus for consistency.
return {
{
"stevearc/dressing.nvim",
event = "VeryLazy",
opts = {
input = {
enabled = true,
default_prompt = "Input:",
trim_prompt = true,
title_pos = "left",
start_in_insert = true,
border = "rounded",
relative = "cursor",
prefer_width = 40,
win_options = {
winblend = 0,
},
mappings = {
n = {
["<Esc>"] = "Close",
["<CR>"] = "Confirm",
},
i = {
["<C-c>"] = "Close",
["<CR>"] = "Confirm",
["<Up>"] = "HistoryPrev",
["<Down>"] = "HistoryNext",
},
},
},
select = {
enabled = true,
backend = { "telescope", "builtin" },
trim_prompt = true,
telescope = require("telescope.themes").get_dropdown({
layout_config = {
width = 0.8,
height = 0.8,
},
}),
},
},
},
}