2 changed files with 28 additions and 1 deletions
@ -0,0 +1,27 @@
|
||||
return { |
||||
"alirezanobakht13/just-runner.nvim", |
||||
dependencies = { |
||||
"folke/snacks.nvim", -- Recommended (default) |
||||
-- OR use "nvim-telescope/telescope.nvim" |
||||
}, |
||||
config = function() |
||||
require("just-runner").setup({ |
||||
picker = "snacks", |
||||
window_position = "bottom", |
||||
close_on_success = true, |
||||
close_on_error = false, |
||||
pause_before_close = 2000, |
||||
}) |
||||
end, |
||||
keys = { |
||||
-- Use Lua function, not command string! |
||||
{ |
||||
"<leader>j", |
||||
function() |
||||
require("just-runner").run() |
||||
end, |
||||
desc = "Just Run", |
||||
mode = "n", |
||||
}, |
||||
}, |
||||
} |
||||
Loading…
Reference in new issue