moved all of my config into this nix flake

This commit is contained in:
Sebastian Moser
2023-10-28 19:10:37 +02:00
parent 9facde9d3a
commit 112ef46fd2
46 changed files with 3545 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{ pkgs, ... }:
{
home-manager.users.me.programs.lf = {
package = pkgs.lf.overrideAttrs (final: prev: {
patches = (prev.patches or [ ]) ++ [
lib/patches/lf-filter.patch
];
checkPhase = "";
});
enable = true;
commands = {
dragon-out = ''%${pkgs.xdragon}/bin/xdragon -a -x "$fx"'';
editor-open = ''$$EDITOR $f'';
mkdir = ''
''${{
printf "Directory Name: "
read DIR
mkdir $DIR
}}
'';
};
settings = {
preview = true;
drawbox = true;
icons = true;
};
keybindings = {
"." = "set hidden!";
"<enter>" = "open";
do = "dragon-out";
"gh" = "cd";
"g/" = "/";
ee = "editor-open";
V = ''$${pkgs.bat}/bin/bat --paging=always --theme=gruvbox "$f"'';
};
}

View File

@@ -0,0 +1,13 @@
diff --git a/nav.go b/nav.go
index c32fc97..95cc2ce 100644
--- a/nav.go
+++ b/nav.go
@@ -1774,7 +1774,7 @@ func searchMatch(name, pattern string) (matched bool, err error) {
if gOpts.globsearch {
return filepath.Match(pattern, name)
}
- return strings.Contains(name, pattern), nil
+ return strings.HasPrefix(name, pattern), nil
}
func (nav *nav) searchNext() (bool, error) {