From ef34ceb024b0207ef69162cf3fec7c0b8677bac1 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 10 May 2024 15:56:17 +0300 Subject: [PATCH] flake.lock: update nix2lua --- flake.lock | 8 ++++---- modules/plugins/language-server/lspconfig.nix | 10 ++-------- modules/plugins/navigation/nvim-tree.nix | 4 ++-- modules/plugins/nvim-cmp.nix | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index c34f350..e4e48b2 100644 --- a/flake.lock +++ b/flake.lock @@ -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" }, diff --git a/modules/plugins/language-server/lspconfig.nix b/modules/plugins/language-server/lspconfig.nix index 9008514..d156bfb 100644 --- a/modules/plugins/language-server/lspconfig.nix +++ b/modules/plugins/language-server/lspconfig.nix @@ -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; }; }; diff --git a/modules/plugins/navigation/nvim-tree.nix b/modules/plugins/navigation/nvim-tree.nix index 40b7181..d1b5ad5 100644 --- a/modules/plugins/navigation/nvim-tree.nix +++ b/modules/plugins/navigation/nvim-tree.nix @@ -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) ]; diff --git a/modules/plugins/nvim-cmp.nix b/modules/plugins/nvim-cmp.nix index 602749e..bf0dfdf 100644 --- a/modules/plugins/nvim-cmp.nix +++ b/modules/plugins/nvim-cmp.nix @@ -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)