feat: add attribute set of named icons

This commit is contained in:
Nicolas Goudry 2024-06-02 10:27:38 +02:00
parent e5f2726ffd
commit 4ea6e5d4bf
No known key found for this signature in database
GPG key ID: 5FC434D9FFD1DF44
4 changed files with 82 additions and 19 deletions

View file

@ -1,6 +1,6 @@
# homepage: https://github.com/goolord/alpha-nvim
# nixvim doc: https://nix-community.github.io/nixvim/plugins/alpha/index.html
{ libn, pkgs, ... }:
{ icons, libn, pkgs, ... }:
let
header = {
@ -30,11 +30,11 @@ let
# Use function defined in lua config (see below) to generate buttons
val = [
{ __raw = "alpha_button('LDR n ', ' New File')"; }
{ __raw = "alpha_button('LDR e ', ' Explorer')"; }
{ __raw = "alpha_button('LDR f f', ' Find File')"; }
{ __raw = "alpha_button('LDR f o', '󰈙 Recents')"; }
{ __raw = "alpha_button('LDR f g', '󰈭 Live Grep')"; }
{ __raw = "alpha_button('LDR n ', '${icons.FileNew} New File')"; }
{ __raw = "alpha_button('LDR e ', '${icons.FolderOpen} Explorer')"; }
{ __raw = "alpha_button('LDR f f', '${icons.Search} Find File')"; }
{ __raw = "alpha_button('LDR f o', '${icons.DefaultFile} Recents')"; }
{ __raw = "alpha_button('LDR f g', '${icons.WordFile} Live Grep')"; }
];
};