flake.lock: update nix2lua

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-10 15:56:17 +03:00
parent 7c6c6f9845
commit ef34ceb024
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
4 changed files with 9 additions and 15 deletions

View file

@ -20,11 +20,11 @@
}, },
"nix2lua": { "nix2lua": {
"locked": { "locked": {
"lastModified": 1714950962, "lastModified": 1715344083,
"narHash": "sha256-BFXPReb658A4OmuPMMkGN77sTDmXDMnii4IC997ZPvo=", "narHash": "sha256-7UehRa7etk0oqSH4ty0nUsmeO3Z+Y1dbKwrGSlgaMIc=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "65d4a061a42dbbb2cc326a4554dc8bac350999b0", "rev": "6a096bf9a22903c92f0065ba3316d3821ddd8b72",
"revCount": 40, "revCount": 41,
"type": "git", "type": "git",
"url": "https://git.pleshevski.ru/mynix/nix2lua" "url": "https://git.pleshevski.ru/mynix/nix2lua"
}, },

View file

@ -36,7 +36,7 @@ in
args = [ "event" ]; args = [ "event" ];
content = { event }: { content = { event }: {
vim.keymap.set = map vim.keymap.set = map
(attrs: attrs // { buffer = pipe1 event (var "buf"); }) (attrs: attrs // { buffer = pipe1 event "buf"; })
cfg.keymap.set; cfg.keymap.set;
}; };
}; };
@ -61,13 +61,7 @@ in
]) ])
); );
afterSetup = lib.mapAttrsToList afterSetup = lib.mapAttrsToList
(ls: lsSettings: (ls: lsSettings: pipe [ varName ls (call "setup" lsSettings) ])
pipe [
(var varName)
(var ls)
(call "setup" lsSettings)
]
)
cfg.serverSettings; cfg.serverSettings;
}; };
}; };

View file

@ -44,8 +44,8 @@ in
content = { bufnr }: { content = { bufnr }: {
extra = lib.mkIf cfg.keymap.withDefault pipe [ extra = lib.mkIf cfg.keymap.withDefault pipe [
(require "nvim-tree.api") (require "nvim-tree.api")
(var "config") "config"
(var "mappings") "mappings"
(call "default_on_attach" bufnr) (call "default_on_attach" bufnr)
]; ];

View file

@ -63,7 +63,7 @@ in
fn.nvim-cmp-snippet-expand = { fn.nvim-cmp-snippet-expand = {
args = [ "args" ]; args = [ "args" ];
content = { args }: content = { args }:
let body = pipe1 args (var "body"); in { let body = pipe1 args "body"; in {
extra = extra =
if snippet.luasnip.enable then if snippet.luasnip.enable then
pipe1 config.plugin.luasnip.var (call "lsp_expand" body) pipe1 config.plugin.luasnip.var (call "lsp_expand" body)