feat: add attribute set of named icons
This commit is contained in:
parent
e5f2726ffd
commit
4ea6e5d4bf
4 changed files with 82 additions and 19 deletions
|
|
@ -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')"; }
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# homepage: https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||
# nixvim doc: https://nix-community.github.io/nixvim/plugins/neo-tree/index.html
|
||||
_:
|
||||
{ icons, ... }:
|
||||
|
||||
{
|
||||
opts = {
|
||||
|
|
@ -143,15 +143,15 @@ _:
|
|||
|
||||
defaultComponentConfigs = {
|
||||
gitStatus.symbols = {
|
||||
added = "";
|
||||
conflict = "";
|
||||
deleted = "";
|
||||
ignored = "◌";
|
||||
modified = "";
|
||||
renamed = "";
|
||||
staged = "";
|
||||
unstaged = "";
|
||||
untracked = "★";
|
||||
added = icons.GitAdd;
|
||||
conflict = icons.GitConflict;
|
||||
deleted = icons.GitDelete;
|
||||
ignored = icons.GitIgnored;
|
||||
modified = icons.GitChange;
|
||||
renamed = icons.GitRenamed;
|
||||
staged = icons.GitStaged;
|
||||
unstaged = icons.GitUnstaged;
|
||||
untracked = icons.GitUntracked;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -177,15 +177,15 @@ _:
|
|||
# Sources to show and their labels
|
||||
sources = [
|
||||
{
|
||||
displayName = " Files";
|
||||
displayName = "${icons.FolderClosed} Files";
|
||||
source = "filesystem";
|
||||
}
|
||||
{
|
||||
displayName = " Bufs";
|
||||
displayName = "${icons.DefaultFile} Bufs";
|
||||
source = "buffers";
|
||||
}
|
||||
{
|
||||
displayName = " Git";
|
||||
displayName = "${icons.Git} Git";
|
||||
source = "git_status";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue