mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
Revert "nix: put builtin in scope when needed"
I don't know where I got this anti-pattern. It makes the LSP unable to figure out which bindings are unbound
This commit is contained in:
parent
082ebfb772
commit
74689b460e
9 changed files with 34 additions and 38 deletions
|
|
@ -4,21 +4,20 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
with builtins;
|
||||
{
|
||||
imports = [ ./aliasesAbbrs.nix ];
|
||||
|
||||
programs.fish =
|
||||
let
|
||||
readConfig = n: readFile ./conf.d/${n}.fish;
|
||||
readConfigs = ns: concatStringsSep "\n" (map readConfig ns);
|
||||
readConfig = n: builtins.readFile ./conf.d/${n}.fish;
|
||||
readConfigs = ns: builtins.concatStringsSep "\n" (map readConfig ns);
|
||||
|
||||
add_paths =
|
||||
ps:
|
||||
lib.trivial.pipe ps [
|
||||
(lib.lists.reverseList) # source paths in reverse order
|
||||
(map (p: "fish_add_path -m ${p}"))
|
||||
(concatStringsSep "\n")
|
||||
(builtins.concatStringsSep "\n")
|
||||
(s: s + "\n")
|
||||
];
|
||||
|
||||
|
|
@ -26,7 +25,7 @@ with builtins;
|
|||
cs:
|
||||
lib.trivial.pipe cs [
|
||||
(map (c: "source ${c}/share/fish/vendor_completions.d/*.fish"))
|
||||
(concatStringsSep "\n")
|
||||
(builtins.concatStringsSep "\n")
|
||||
(s: s + "\n")
|
||||
];
|
||||
in
|
||||
|
|
@ -69,10 +68,10 @@ with builtins;
|
|||
(map (
|
||||
n: {
|
||||
name = n;
|
||||
value = readFile ./functions/${n}.fish;
|
||||
value = builtins.readFile ./functions/${n}.fish;
|
||||
}
|
||||
))
|
||||
listToAttrs
|
||||
builtins.listToAttrs
|
||||
];
|
||||
in
|
||||
makeFishFunctions [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue