mirror of
https://github.com/darwincereska/nvim-config.git
synced 2026-02-12 06:24:42 -05:00
feat(working): first working condition
This commit is contained in:
67
lua/plugins/dressing.lua
Normal file
67
lua/plugins/dressing.lua
Normal file
@@ -0,0 +1,67 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user