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

View file

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

View file

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

View file

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