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": {
|
||||
"locked": {
|
||||
"lastModified": 1716152918,
|
||||
"narHash": "sha256-AvjnTReWS5TFgjXKtUOuzVjHZz94bhmRBGpTBP9XfqI=",
|
||||
"lastModified": 1716204167,
|
||||
"narHash": "sha256-Jo1bjYIMy0Zj4zrkcMrcG0N2Qnhc75OnxL6fnqBG+mg=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "da13688260265f83e8b8221a7b46d8d84b3942fc",
|
||||
"revCount": 47,
|
||||
"rev": "654eda07372a9a2a03e746d9758f6b39de396a83",
|
||||
"revCount": 51,
|
||||
"type": "git",
|
||||
"url": "https://git.pleshevski.ru/mynix/nix2lua"
|
||||
},
|
||||
|
|
|
@ -25,7 +25,7 @@ let
|
|||
inherit event;
|
||||
inherit (cfg) pattern;
|
||||
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
|
||||
(flip mapAttrsToList config.vim.g (k: set "vim.g.${k}"))
|
||||
# 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
|
||||
(map (v: v.genConfig) (filter (v: v.enable) (attrValues config.plugin)))
|
||||
# Cmd
|
||||
|
|
|
@ -90,7 +90,7 @@ in
|
|||
};
|
||||
|
||||
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 [
|
||||
|
|
Loading…
Reference in a new issue