[Snacks] Fix indent char

This commit is contained in:
2025-11-26 16:01:41 +01:00
parent 80a2b12793
commit 2faa7e8435

View File

@@ -1,108 +1,114 @@
return { return {
"folke/snacks.nvim", "folke/snacks.nvim",
priority = 1000, priority = 1000,
lazy = false, lazy = false,
---@type snacks.Config ---@type snacks.Config
opts = { opts = {
-- your configuration comes here -- your configuration comes here
-- or leave it empty to use the default settings -- or leave it empty to use the default settings
-- refer to the configuration section below -- refer to the configuration section below
animate = { enabled = true }, animate = { enabled = true },
bigfile = { enabled = true }, bigfile = { enabled = true },
bufdelete = { enabled = true }, bufdelete = { enabled = true },
dashboard = { dashboard = {
enabled = true, enabled = true,
sections = { sections = {
{ section = "header", hl = "SnacksDashboardHeader" }, { section = "header", hl = "SnacksDashboardHeader" },
{ {
pane = 2, pane = 2,
section = "terminal", section = "terminal",
cmd = "colorscript -e square", cmd = "colorscript -e square",
height = 5, height = 5,
padding = 1, padding = 1,
}, },
{ section = "keys", hl = "SnacksDashboardPrimary", gap = 1, padding = 1 }, { section = "keys", hl = "SnacksDashboardPrimary", gap = 1, padding = 1 },
{ {
pane = 2, pane = 2,
icon = "", icon = "",
title = "Recent Files (in project)", title = "Recent Files (in project)",
section = "recent_files", section = "recent_files",
indent = 2, indent = 2,
limit = 5, limit = 5,
padding = 1, padding = 1,
cwd = true, cwd = true,
}, },
{ {
pane = 2, pane = 2,
icon = "", icon = "",
title = "Projects", title = "Projects",
section = "projects", section = "projects",
indent = 2, indent = 2,
padding = 1, padding = 1,
limit = 4, limit = 4,
}, },
{ {
pane = 2, pane = 2,
icon = "", icon = "",
title = "Git Status", title = "Git Status",
section = "terminal", section = "terminal",
enabled = function() enabled = function()
return Snacks.git.get_root() ~= nil return Snacks.git.get_root() ~= nil
end, end,
cmd = "git status --short --branch --renames", cmd = "git status --short --branch --renames",
height = 5, height = 5,
padding = 1, padding = 1,
ttl = 5 * 60, ttl = 5 * 60,
indent = 3, indent = 3,
}, },
{ section = "startup" }, { section = "startup" },
}, },
}, },
indent = { indent = {
enabled = true, enabled = true,
priority = 1, indent = {
char = "", enabled = true,
animate = { priority = 1,
enabled = false, char = "",
}, },
}, animate = {
lazygit = { enabled = true }, enabled = false,
picker = { enabled = true }, },
quickfile = { enabled = true }, scope = {
statuscolumn = { enabled = true }, char = "",
}, },
keys = { },
{ lazygit = { enabled = true },
"<leader><leader>gl", picker = { enabled = true },
function() quickfile = { enabled = true },
Snacks.lazygit() statuscolumn = { enabled = true },
end, },
desc = "Open LazyGit", keys = {
mode = "n", {
}, "<leader><leader>gl",
{ function()
"<leader>fcs", Snacks.lazygit()
function() end,
Snacks.picker.highlights({ pattern = "hl_group:^Snacks" }) desc = "Open LazyGit",
end, mode = "n",
desc = "Show Snacks highlights", },
mode = "n", {
}, "<leader>fcs",
{ function()
"<leader>fca", Snacks.picker.highlights({ pattern = "hl_group:^Snacks" })
function() end,
Snacks.picker.highlights() desc = "Show Snacks highlights",
end, mode = "n",
desc = "Show highlight groups", },
mode = "n", {
}, "<leader>fca",
{ function()
"<C-x>", Snacks.picker.highlights()
function() end,
Snacks.bufdelete() desc = "Show highlight groups",
end, mode = "n",
desc = "Close buffer", },
mode = "n", {
}, "<C-x>",
}, function()
Snacks.bufdelete()
end,
desc = "Close buffer",
mode = "n",
},
},
} }