Skip to content

Commit

Permalink
Merge pull request #513 from diniamo/update-run
Browse files Browse the repository at this point in the history
flake: update run.nvim
  • Loading branch information
NotAShelf authored Dec 25, 2024
2 parents 7dd2026 + 672630f commit aa1754d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 3 additions & 11 deletions modules/plugins/runner/run-nvim/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,9 @@ in {
cmd = "Run";

keys = [
(mkKeymap "n" cfg.mappings.run "<cmd>Run<CR>" {desc = mappings.run.description;})
(mkKeymap "n" cfg.mappings.runOverride "<cmd>Run!<CR>" {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 "<cmd>Run<cr>" {desc = mappings.run.description;})
(mkKeymap "n" cfg.mappings.runOverride "<cmd>Run!<cr>" {desc = mappings.runOverride.description;})
(mkKeymap "n" cfg.mappings.runCommand "<cmd>RunPrompt<cr>" {desc = mappings.run.description;})
];
};

Expand Down

0 comments on commit aa1754d

Please sign in to comment.