From 6dcd88cde5825573a3732e8b18f7d663ca47495b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 23 Sep 2023 22:04:59 +0200 Subject: Rename setup to config --- fnl/plugins/editor/alpha.fnl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fnl/plugins/editor/alpha.fnl') diff --git a/fnl/plugins/editor/alpha.fnl b/fnl/plugins/editor/alpha.fnl index c9dce50..c933a99 100644 --- a/fnl/plugins/editor/alpha.fnl +++ b/fnl/plugins/editor/alpha.fnl @@ -21,7 +21,7 @@ " ..... " " . "]) -(fn setup [] +(fn config [] (let [alpha (require :alpha)] (let [dashboard (require :alpha.themes.dashboard)] (set dashboard.section.header.val ascii-art) @@ -30,9 +30,12 @@ ":Telescope find_files theme=dropdown") (dashboard.button :g (.. (. icons :search-text) " Find text") ":Telescope live_grep theme=dropdown") - (dashboard.button :p (.. (. icons :search-project) " Find project") + (dashboard.button :p + (.. (. icons :search-project) " Find project") ":Telescope projects theme=dropdown") - (dashboard.button :r (.. (. icons :recent-files) " Recently used files") + (dashboard.button :r + (.. (. icons :recent-files) + " Recently used files") ":Telescope oldfiles theme=dropdown") (dashboard.button :t (.. (. icons :cog) " Configuration") ":e ~/.config/nvim/init.lua ") @@ -43,7 +46,4 @@ (set dashboard.opts.opts.noautocmd true) (alpha.setup dashboard.opts)))) -{1 :goolord/alpha-nvim - :event :VimEnter - :config (fn [] - (setup))} +{1 :goolord/alpha-nvim :event :VimEnter : config} -- cgit v1.2.3-70-g09d2