mirror of
https://github.com/darwincereska/nvim-config.git
synced 2026-02-12 06:24:42 -05:00
68 lines
2.4 KiB
Lua
68 lines
2.4 KiB
Lua
return {
|
|
"stevearc/dressing.nvim",
|
|
event = "VeryLazy",
|
|
config = function()
|
|
require("dressing").setup({
|
|
input = {
|
|
enabled = true,
|
|
default_prompt = "Input:",
|
|
prompt_align = "left",
|
|
insert_only = true,
|
|
start_in_insert = true,
|
|
border = "rounded",
|
|
relative = "cursor",
|
|
prefer_width = 40,
|
|
width = nil,
|
|
max_width = { 140, 0.9 },
|
|
min_width = { 20, 0.2 },
|
|
win_options = {
|
|
winblend = 0,
|
|
wrap = false,
|
|
},
|
|
mappings = {
|
|
n = {
|
|
["<Esc>"] = "Close",
|
|
["<CR>"] = "Confirm",
|
|
},
|
|
i = {
|
|
["<C-c>"] = "Close",
|
|
["<CR>"] = "Confirm",
|
|
["<Up>"] = "HistoryPrev",
|
|
["<Down>"] = "HistoryNext",
|
|
},
|
|
},
|
|
},
|
|
select = {
|
|
enabled = true,
|
|
backend = { "telescope", "builtin", "nui" },
|
|
trim_prompt = true,
|
|
telescope = require("telescope.themes").get_dropdown({
|
|
borderchars = {
|
|
prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" },
|
|
results = { "─", "│", "─", "│", "├", "┤", "╯", "╰" },
|
|
preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
|
},
|
|
width = 0.8,
|
|
previewer = false,
|
|
prompt_title = false,
|
|
}),
|
|
builtin = {
|
|
border = "rounded",
|
|
relative = "editor",
|
|
win_options = {
|
|
winblend = 0,
|
|
cursorline = true,
|
|
cursorlineopt = "both",
|
|
},
|
|
width = nil,
|
|
max_width = { 140, 0.8 },
|
|
min_width = { 40, 0.2 },
|
|
height = nil,
|
|
max_height = 0.9,
|
|
min_height = { 10, 0.2 },
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|