Compare commits

..

2 commits

Author SHA1 Message Date
c7b89f343d nvim: fix telescope loading 2025-04-10 18:36:43 +02:00
80fdc97c28 nvim: nicer dashboard 2025-04-10 18:36:35 +02:00
2 changed files with 38 additions and 1 deletions

View file

@ -8,7 +8,28 @@ return {
lazy = false,
opts = {
bigfiles = { enabled = true },
dashboard = { enabled = true },
dashboard = {
enabled = true,
sections = {
{ section = "header" },
{ icon = "", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
{ icon = "", title = "Projects", section = "projects", indent = 2, padding = 1 },
{
icon = "",
title = "Git Status",
section = "terminal",
enabled = function()
return Snacks.git.get_root() ~= nil
end,
cmd = "git status --short --branch --renames",
height = 5,
padding = 1,
ttl = 5 * 60,
indent = 3,
},
},
preset = { keys = {} },
},
indent = { enabled = true, animate = { enabled = false } },
input = { enabled = true },
lazygit = { enabled = true, configure = true },
@ -53,4 +74,8 @@ return {
extensions = { lazy_nvim = true },
},
},
{
"m4xshen/autoclose.nvim",
opts = {},
},
}

View file

@ -3,6 +3,11 @@
return {
{
"nvim-telescope/telescope.nvim",
lazy = false,
requires = {
"nvim-lua/plenary.nvim",
"xvzc/chezmoi.nvim",
},
config = function()
local telescope = require("telescope")
telescope.setup({})
@ -33,5 +38,12 @@ return {
}),
})
end,
keys = {
{
"<leader>fc",
"<cmd>Telescope chezmoi find_files<cr>",
desc = "Find Chezmoi-managed files",
},
},
},
}