flake.lock: update nix2lua
This commit is contained in:
parent
ba23108cca
commit
e6ffc77378
4 changed files with 7 additions and 7 deletions
|
@ -20,11 +20,11 @@
|
||||||
},
|
},
|
||||||
"nix2lua": {
|
"nix2lua": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716152918,
|
"lastModified": 1716204167,
|
||||||
"narHash": "sha256-AvjnTReWS5TFgjXKtUOuzVjHZz94bhmRBGpTBP9XfqI=",
|
"narHash": "sha256-Jo1bjYIMy0Zj4zrkcMrcG0N2Qnhc75OnxL6fnqBG+mg=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "da13688260265f83e8b8221a7b46d8d84b3942fc",
|
"rev": "654eda07372a9a2a03e746d9758f6b39de396a83",
|
||||||
"revCount": 47,
|
"revCount": 51,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.pleshevski.ru/mynix/nix2lua"
|
"url": "https://git.pleshevski.ru/mynix/nix2lua"
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,7 +25,7 @@ let
|
||||||
inherit event;
|
inherit event;
|
||||||
inherit (cfg) pattern;
|
inherit (cfg) pattern;
|
||||||
callback = with lib; with nix2lua; lambda [ "ev" ] (lib.flatten [
|
callback = with lib; with nix2lua; lambda [ "ev" ] (lib.flatten [
|
||||||
(flip mapAttrsToList cfg.opt (k: v: if v == null then null else set "vim.opt.${k}" v))
|
(flip mapAttrsToList cfg.opt (k: set "vim.opt.${k}"))
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ in
|
||||||
# Global Opts
|
# Global Opts
|
||||||
(flip mapAttrsToList config.vim.g (k: set "vim.g.${k}"))
|
(flip mapAttrsToList config.vim.g (k: set "vim.g.${k}"))
|
||||||
# Opts
|
# Opts
|
||||||
(flip mapAttrsToList config.vim.opt (k: v: if v == null then null else set "vim.opt.${k}" v))
|
(flip mapAttrsToList config.vim.opt (k: set "vim.opt.${k}"))
|
||||||
# Plugins
|
# Plugins
|
||||||
(map (v: v.genConfig) (filter (v: v.enable) (attrValues config.plugin)))
|
(map (v: v.genConfig) (filter (v: v.enable) (attrValues config.plugin)))
|
||||||
# Cmd
|
# Cmd
|
||||||
|
|
|
@ -90,7 +90,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeSetup = with lib; optionals (cfg.extraGrammars != { }) (
|
beforeSetup = with lib; optionals (cfg.extraGrammars != { }) (
|
||||||
mapAttrsToList (k: v: set "parser_config.${v.language}" { }) cfg.extraGrammars
|
mapAttrsToList (k: v: set (pipe1 "parser_config" v.language) { }) cfg.extraGrammars
|
||||||
);
|
);
|
||||||
|
|
||||||
setupSettings = lib.mkMerge [
|
setupSettings = lib.mkMerge [
|
||||||
|
|
Loading…
Reference in a new issue