mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
feat(win): all existing snacks windows for all plugins now honor vim.o.winborder. Defaults to rounded if not set.
This commit is contained in:
parent
b30523c89f
commit
c1737d866e
6 changed files with 18 additions and 18 deletions
|
|
@ -8,7 +8,7 @@ M.meta = {
|
|||
Snacks.config.style("blame_line", {
|
||||
width = 0.6,
|
||||
height = 0.6,
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = " Git Blame ",
|
||||
title_pos = "center",
|
||||
ft = "git",
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ M.config = Snacks.config.get("image", defaults)
|
|||
|
||||
Snacks.config.style("snacks_image", {
|
||||
relative = "cursor",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
focusable = false,
|
||||
backdrop = false,
|
||||
row = 1,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ Snacks.util.set_hl({
|
|||
Snacks.config.style("input", {
|
||||
backdrop = false,
|
||||
position = "float",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title_pos = "center",
|
||||
height = 1,
|
||||
width = 60,
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ local history_opts = {
|
|||
}
|
||||
|
||||
Snacks.config.style("notification", {
|
||||
border = "rounded",
|
||||
border = true,
|
||||
zindex = 100,
|
||||
ft = "markdown",
|
||||
wo = {
|
||||
|
|
@ -92,7 +92,7 @@ Snacks.config.style("notification", {
|
|||
})
|
||||
|
||||
Snacks.config.style("notification_history", {
|
||||
border = "rounded",
|
||||
border = true,
|
||||
zindex = 100,
|
||||
width = 0.6,
|
||||
height = 0.6,
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@ M.default = {
|
|||
height = 0.8,
|
||||
{
|
||||
box = "vertical",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = "{title} {live} {flags}",
|
||||
{ win = "input", height = 1, border = "bottom" },
|
||||
{ win = "list", border = "none" },
|
||||
},
|
||||
{ win = "preview", title = "{preview}", border = "rounded", width = 0.5 },
|
||||
{ win = "preview", title = "{preview}", border = true, width = 0.5 },
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ M.sidebar = {
|
|||
{
|
||||
win = "input",
|
||||
height = 1,
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = "{title} {live} {flags}",
|
||||
title_pos = "center",
|
||||
},
|
||||
|
|
@ -51,14 +51,14 @@ M.telescope = {
|
|||
border = "none",
|
||||
{
|
||||
box = "vertical",
|
||||
{ win = "list", title = " Results ", title_pos = "center", border = "rounded" },
|
||||
{ win = "input", height = 1, border = "rounded", title = "{title} {live} {flags}", title_pos = "center" },
|
||||
{ win = "list", title = " Results ", title_pos = "center", border = true },
|
||||
{ win = "input", height = 1, border = true, title = "{title} {live} {flags}", title_pos = "center" },
|
||||
},
|
||||
{
|
||||
win = "preview",
|
||||
title = "{preview:Preview}",
|
||||
width = 0.45,
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title_pos = "center",
|
||||
},
|
||||
},
|
||||
|
|
@ -112,10 +112,10 @@ M.dropdown = {
|
|||
height = 0.8,
|
||||
border = "none",
|
||||
box = "vertical",
|
||||
{ win = "preview", title = "{preview}", height = 0.4, border = "rounded" },
|
||||
{ win = "preview", title = "{preview}", height = 0.4, border = true },
|
||||
{
|
||||
box = "vertical",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = "{title} {live} {flags}",
|
||||
title_pos = "center",
|
||||
{ win = "input", height = 1, border = "bottom" },
|
||||
|
|
@ -132,7 +132,7 @@ M.vertical = {
|
|||
height = 0.8,
|
||||
min_height = 30,
|
||||
box = "vertical",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = "{title} {live} {flags}",
|
||||
title_pos = "center",
|
||||
{ win = "input", height = 1, border = "bottom" },
|
||||
|
|
@ -150,7 +150,7 @@ M.select = {
|
|||
height = 0.4,
|
||||
min_height = 3,
|
||||
box = "vertical",
|
||||
border = "rounded",
|
||||
border = true,
|
||||
title = "{title}",
|
||||
title_pos = "center",
|
||||
{ win = "input", height = 1, border = "bottom" },
|
||||
|
|
@ -169,9 +169,9 @@ M.vscode = {
|
|||
height = 0.4,
|
||||
border = "none",
|
||||
box = "vertical",
|
||||
{ win = "input", height = 1, border = "rounded", title = "{title} {live} {flags}", title_pos = "center" },
|
||||
{ win = "input", height = 1, border = true, title = "{title} {live} {flags}", title_pos = "center" },
|
||||
{ win = "list", border = "hpad" },
|
||||
{ win = "preview", title = "{preview}", border = "rounded" },
|
||||
{ win = "preview", title = "{preview}", border = true },
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ Snacks.config.style("scratch", {
|
|||
zindex = 20,
|
||||
wo = { winhighlight = "NormalFloat:Normal" },
|
||||
footer_keys = true,
|
||||
border = "rounded",
|
||||
border = true,
|
||||
})
|
||||
|
||||
--- Return a list of scratch buffers sorted by mtime.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue