Fixed path filters for neovim config

This commit is contained in:
2025-12-22 15:55:03 +00:00
parent 0a994a3013
commit 59b814dcbd
2 changed files with 10 additions and 8 deletions

12
flake.lock generated
View File

@@ -78,11 +78,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1766070988,
"narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=",
"lastModified": 1766309749,
"narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c6245e83d836d0433170a16eb185cefe0572f8b8",
"rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816",
"type": "github"
},
"original": {
@@ -160,11 +160,11 @@
]
},
"locked": {
"lastModified": 1766378463,
"narHash": "sha256-ZGTxrMJktO2TiqrWdZZ7FCw26LKcw3sJkn9MnDLWg4I=",
"lastModified": 1766410104,
"narHash": "sha256-Eh+TUdb4CGscBLG3Q6QOQOjEdPCmHPClGyeHf4F67Mk=",
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"rev": "b6b1e625e4aa049b59930611fc20790c0ccbc840",
"rev": "eaff1bc54b9a8bd698c2dc47823400460e9f38a0",
"type": "github"
},
"original": {

View File

@@ -23,9 +23,11 @@
baseName = baseNameOf name;
in
! (
(lib.hasPrefix "." baseName)
(lib.hasPrefix "*/nvim/.*" name)
|| (lib.hasPrefix "." baseName)
|| (lib.hasPrefix "devenv" baseName)
|| (isRoot && (lib.hasSuffix ".toml" baseName || lib.hasSuffix ".yml" baseName))
|| (lib.hasSuffix ".toml" baseName)
|| (lib.hasSuffix ".yml" baseName)
);
};
target = ".config/nvim";