refactor(nvim): Move snacks.dashboard to separate file

This commit is contained in:
demenik
2025-12-17 12:25:43 +01:00
parent 996d35f015
commit a0775faedd
2 changed files with 54 additions and 53 deletions

View File

@@ -0,0 +1,53 @@
let
themes = import ./themes.nix;
theme = themes.dg_baby;
in {
enabled = true;
preset = {
inherit (theme) header;
keys = [
{
icon = " ";
key = "f";
desc = "Find File";
action = ":lua Snacks.dashboard.pick('files')";
}
{
icon = " ";
key = "n";
desc = "New File";
action = ":ene | startinsert";
}
{
icon = " ";
key = "l";
desc = "Live Grep";
action = ":lua Snacks.dashboard.pick('live_grep')";
}
{
icon = " ";
key = "o";
desc = "Old Files";
action = ":lua Snacks.dashboard.pick('oldfiles')";
}
{
icon = " ";
key = "q";
desc = "Quit";
action = ":qa";
}
];
};
sections = [
{section = "header";}
{
section = "keys";
gap = 1;
padding = 1;
}
{
title = theme.quote;
align = "center";
}
];
}