From 7df25e8ce3e98e4cb56c5eb47c6ada1f414e083c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 20 May 2023 00:08:22 +0200 Subject: Add icons file --- fnl/plugins/ui/alpha.fnl | 18 +++++++++--------- fnl/plugins/ui/lualine.fnl | 7 +++++-- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'fnl/plugins/ui') diff --git a/fnl/plugins/ui/alpha.fnl b/fnl/plugins/ui/alpha.fnl index 38c9606..55a962b 100644 --- a/fnl/plugins/ui/alpha.fnl +++ b/fnl/plugins/ui/alpha.fnl @@ -1,5 +1,7 @@ ;; A customizable greeter. +(local icons (require :plugins.icons)) + (local ascii-art [" ##############..... ############## " " ##############......############## " " ##########..........########## " @@ -24,20 +26,18 @@ (let [dashboard (require :alpha.themes.dashboard)] (set dashboard.section.header.val ascii-art) (set dashboard.section.buttons.val - [(dashboard.button :e " New file" ":ene startinsert ") - (dashboard.button :f " Find file" + [(dashboard.button :f (.. (. icons :search) " Find file") ":Telescope find_files theme=dropdown") - (dashboard.button :g " Find text" + (dashboard.button :g (.. (. icons :text) " Find text") ":Telescope live_grep theme=dropdown") - (dashboard.button :p " Find project" + (dashboard.button :p (.. (. icons :notebook) " Find project") ":Telescope projects theme=dropdown") - (dashboard.button :r " Recently used files" + (dashboard.button :r (.. (. icons :clock) " Recently used files") ":Telescope oldfiles theme=dropdown") - (dashboard.button :t " Configuration" + (dashboard.button :t (.. (. icons :cog) " Configuration") ":e ~/.config/nvim/init.lua ") - (dashboard.button :o " Org" - ":Telescope find_files theme=dropdown cwd=~/.local/share/org") - (dashboard.button :q " Quit Neovim" ":qa")]) + (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) diff --git a/fnl/plugins/ui/lualine.fnl b/fnl/plugins/ui/lualine.fnl index 170e8a9..e2b533b 100644 --- a/fnl/plugins/ui/lualine.fnl +++ b/fnl/plugins/ui/lualine.fnl @@ -1,5 +1,7 @@ ;; Statusbar. +(local icons (require :plugins.icons)) + (local disable [:neogitstatus :netrw :lir @@ -27,7 +29,8 @@ (local diagnostics {1 :diagnostics :sources [:nvim_diagnostic] :sections [:error :warn] - :symbols {:error " " :warn " "} + :symbols {:error (.. (. icons :error) " ") + :warn (.. (. icons :warn) " ")} :colored false :disabled_buftypes [:nvim-tree] :padding 0 @@ -40,7 +43,7 @@ :cond hide-in-width}) (local branch {1 "b:gitsigns_head" - :icon " " + :icon (. icons :git) :disabled_buftypes [:nvim-tree] :cond hide-in-width}) -- cgit v1.2.3-70-g09d2