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) + ''; }; }