From df211fae51faddd7b47b78806660e21f6ec1a694 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 12 Jul 2023 21:46:07 +0200 Subject: Debloat loading of plugins --- fnl/plugins/editor/alpha.fnl | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 fnl/plugins/editor/alpha.fnl (limited to 'fnl/plugins/editor/alpha.fnl') diff --git a/fnl/plugins/editor/alpha.fnl b/fnl/plugins/editor/alpha.fnl new file mode 100644 index 0000000..c9dce50 --- /dev/null +++ b/fnl/plugins/editor/alpha.fnl @@ -0,0 +1,49 @@ +;; A customizable greeter. + +(local icons (require :plugins.icons)) + +(local ascii-art [" ##############..... ############## " + " ##############......############## " + " ##########..........########## " + " ##########........########## " + " ##########.......########## " + " ##########.....##########.. " + " ##########....##########..... " + " ..##########..##########......... " + " ....##########.#########............. " + " ..################JJJ............ " + " ################............. " + " ##############.JJJ.JJJJJJJJJJ " + " ############...JJ...JJ..JJ JJ " + " ##########....JJ...JJ..JJ JJ " + " ########......JJJ..JJJ JJJ JJJ " + " ###### ......... " + " ..... " + " . "]) + +(fn setup [] + (let [alpha (require :alpha)] + (let [dashboard (require :alpha.themes.dashboard)] + (set dashboard.section.header.val ascii-art) + (set dashboard.section.buttons.val + [(dashboard.button :f (.. (. icons :search-files) " Find file") + ":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") + ":Telescope projects theme=dropdown") + (dashboard.button :r (.. (. icons :recent-files) " Recently used files") + ":Telescope oldfiles theme=dropdown") + (dashboard.button :t (.. (. icons :cog) " Configuration") + ":e ~/.config/nvim/init.lua ") + (dashboard.button :o (.. (. icons :org) " Org") + ":Telescope find_files theme=dropdown cwd=~/.local/share/org")]) + (set dashboard.section.header.opts.hl :AlphaHeader) + (set dashboard.section.buttons.opts.hl :AlphaButtons) + (set dashboard.opts.opts.noautocmd true) + (alpha.setup dashboard.opts)))) + +{1 :goolord/alpha-nvim + :event :VimEnter + :config (fn [] + (setup))} -- cgit v1.2.3-70-g09d2