mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
home-manager/suites/dev: update fzf and eza settings
This commit is contained in:
parent
9cef07f1a5
commit
435654f95e
@ -18,6 +18,13 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
({
|
({
|
||||||
|
# Contains a dev-adjacent list of directory names to be ignored usually
|
||||||
|
# used in walking through directories.
|
||||||
|
state.dev.ignoreDirectories = [
|
||||||
|
".git"
|
||||||
|
".direnv"
|
||||||
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
cookiecutter # Cookiecutter templates for your mama (which is you).
|
cookiecutter # Cookiecutter templates for your mama (which is you).
|
||||||
copier # Another set of scaffolding.
|
copier # Another set of scaffolding.
|
||||||
@ -104,6 +111,11 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
changeDirWidgetCommand = "${fd} --type directory --unrestricted";
|
changeDirWidgetCommand = "${fd} --type directory --unrestricted";
|
||||||
defaultCommand = "${fd} --type file --hidden";
|
defaultCommand = "${fd} --type file --hidden";
|
||||||
|
defaultOptions = let
|
||||||
|
skipDirectories' = lib.concatStringsSep "," config.state.dev.ignoreDirectories;
|
||||||
|
in [
|
||||||
|
"--walker-skip=${skipDirectories'}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Supercharging your shell history. Just don't forget to flush them out
|
# Supercharging your shell history. Just don't forget to flush them out
|
||||||
@ -162,9 +174,13 @@ in {
|
|||||||
# Your E last to the A.
|
# Your E last to the A.
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraOptions = [
|
extraOptions = let
|
||||||
|
ignoreDirectories = lib.concatStringsSep "|" config.state.dev.ignoreDirectories;
|
||||||
|
in [
|
||||||
"--group-directories-first"
|
"--group-directories-first"
|
||||||
"--header"
|
"--header"
|
||||||
|
"--git-ignore"
|
||||||
|
"--ignore-glob=${ignoreDirectories}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user