From 672630f680a92bb1b3a84bab73639a72de69c360 Mon Sep 17 00:00:00 2001 From: diniamo Date: Wed, 25 Dec 2024 13:37:04 +0100 Subject: [PATCH] flake: update run.nvim --- flake.lock | 6 +++--- modules/plugins/runner/run-nvim/config.nix | 14 +++----------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index 97ff675..3275a12 100644 --- a/flake.lock +++ b/flake.lock @@ -1729,11 +1729,11 @@ "plugin-run-nvim": { "flake": false, "locked": { - "lastModified": 1734816675, - "narHash": "sha256-Wuk5HG+vHXAbifzp5YB5V/FxBhBRNWLeypkRczpXbvQ=", + "lastModified": 1735130195, + "narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=", "owner": "diniamo", "repo": "run.nvim", - "rev": "6cd971afdce6443d7a070dcc23af51da1cc932f9", + "rev": "5888f31c5faf4776e598c0665470f5445510c59e", "type": "github" }, "original": { diff --git a/modules/plugins/runner/run-nvim/config.nix b/modules/plugins/runner/run-nvim/config.nix index 7667f5d..60989a1 100644 --- a/modules/plugins/runner/run-nvim/config.nix +++ b/modules/plugins/runner/run-nvim/config.nix @@ -20,17 +20,9 @@ in { cmd = "Run"; keys = [ - (mkKeymap "n" cfg.mappings.run "Run" {desc = mappings.run.description;}) - (mkKeymap "n" cfg.mappings.runOverride "Run!" {desc = mappings.runOverride.description;}) - (mkKeymap "n" cfg.mappings.runCommand '' - function() - local input = vim.fn.input("Run command: ") - if input ~= "" then require("run").run(input, false) end - end - '' { - desc = mappings.run.description; - lua = true; - }) + (mkKeymap "n" cfg.mappings.run "Run" {desc = mappings.run.description;}) + (mkKeymap "n" cfg.mappings.runOverride "Run!" {desc = mappings.runOverride.description;}) + (mkKeymap "n" cfg.mappings.runCommand "RunPrompt" {desc = mappings.run.description;}) ]; };