Skip to content

Commit

Permalink
s/mapAttrsFlatten/mapAttrsToList
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Oct 4, 2024
1 parent 69a19b5 commit 18e52e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ in
let
filterNonNull = filterAttrs (name: value: value != null);
globalsScript =
mapAttrsFlatten (name: value: "let g:${name}=${toJSON value}")
mapAttrsToList (name: value: "let g:${name}=${toJSON value}")
(filterNonNull cfg.globals);

matchCtrl = match "Ctrl-(.)(.*)";
Expand All @@ -206,7 +206,7 @@ in
then it
else "<C-${toUpper (head groups)}>${head (tail groups)}";
mapVimBinding = prefix: mappings:
mapAttrsFlatten (name: value: "${prefix} ${mapKeyBinding name} ${value}")
mapAttrsToList (name: value: "${prefix} ${mapKeyBinding name} ${value}")
(filterNonNull mappings);

nmap = mapVimBinding "nmap" config.vim.nmap;
Expand Down

0 comments on commit 18e52e4

Please sign in to comment.