diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 00:08:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-20 00:08:22 +0200 |
commit | 7df25e8ce3e98e4cb56c5eb47c6ada1f414e083c (patch) | |
tree | 4a2c593af7e1116ea1d42dd95f50d0b1f0ecd856 /fnl/plugins/ui | |
parent | b025d2ca64e9c3b4d65635883eead9bac625921f (diff) |
Add icons file
Diffstat (limited to 'fnl/plugins/ui')
-rw-r--r-- | fnl/plugins/ui/alpha.fnl | 18 | ||||
-rw-r--r-- | fnl/plugins/ui/lualine.fnl | 7 |
2 files changed, 14 insertions, 11 deletions
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 <BAR> startinsert <CR>") - (dashboard.button :f " Find file" + [(dashboard.button :f (.. (. icons :search) " Find file") ":Telescope find_files theme=dropdown<CR>") - (dashboard.button :g " Find text" + (dashboard.button :g (.. (. icons :text) " Find text") ":Telescope live_grep theme=dropdown<CR>") - (dashboard.button :p " Find project" + (dashboard.button :p (.. (. icons :notebook) " Find project") ":Telescope projects theme=dropdown<CR>") - (dashboard.button :r " Recently used files" + (dashboard.button :r (.. (. icons :clock) " Recently used files") ":Telescope oldfiles theme=dropdown<CR>") - (dashboard.button :t " Configuration" + (dashboard.button :t (.. (. icons :cog) " Configuration") ":e ~/.config/nvim/init.lua <CR>") - (dashboard.button :o " Org" - ":Telescope find_files theme=dropdown cwd=~/.local/share/org<CR>") - (dashboard.button :q " Quit Neovim" ":qa<CR>")]) + (dashboard.button :o (.. (. icons :org) " Org") + ":Telescope find_files theme=dropdown cwd=~/.local/share/org<CR>")]) (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}) |