From fd25eb8f8b9a7d6ace8887f617e5c06bc157908f Mon Sep 17 00:00:00 2001 From: antoine Date: Sun, 22 Mar 2026 10:14:19 +0100 Subject: [PATCH] fix(alpha): replace default buttons with actual keymaps --- plugins/ui.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/ui.nix b/plugins/ui.nix index 167dbd7..6d8d214 100644 --- a/plugins/ui.nix +++ b/plugins/ui.nix @@ -37,5 +37,18 @@ enable = true; theme = "dashboard"; }; + + luaConfigRC.alpha-buttons = '' + local dashboard = require("alpha.themes.dashboard") + dashboard.section.buttons.val = { + dashboard.button("e", " New file", ":ene startinsert"), + dashboard.button(",ff", " Find file", ":FzfLua files"), + dashboard.button(",fo", " Recently opened", ":FzfLua oldfiles"), + dashboard.button(",fg", " Find word", ":FzfLua live_grep"), + dashboard.button(",fp", " Open session", ":SessionManager load_session"), + dashboard.button("q", " Quit", ":qa"), + } + require("alpha").setup(dashboard.config) + ''; }; }