feat(nvim): add package jaq-nvim (just another quickrun)

This commit is contained in:
inkch
2025-07-25 08:16:35 +09:00
parent bf08f424eb
commit 7d8bc680b3

View File

@@ -0,0 +1,59 @@
-- jaq-nvim: Just Another Quickrun
-- https://github.com/is0n/jaq-nvim?tab=readme-ov-file
return {
"is0n/jaq-nvim",
config = function()
require('jaq-nvim').setup{
cmds = {
-- Uses vim commands
internal = {
lua = "luafile %",
vim = "source %"
},
-- Uses shell commands
external = {
markdown = "glow %",
python = "python3 %",
go = "go run %",
sh = "sh %",
perl = "perl %",
ruby = "ruby %"
}
},
behavior = {
default = "float",
startinsert = false,
wincmd = false,
autosave = false
},
ui = {
float = {
border = "solid", -- see :h winborder
winhl = "Normal",
borderhl = "FloatBorder",
winblend = 0,
height = 0.7,
width = 0.7,
x = 0.5,
y = 0.5
},
terminal = {
position = "bot",
size = 10,
line_no = false
},
quickfix = {
position = "bot",
size = 10
}
}
}
vim.keymap.set("n", "<leader>r", vim.cmd.Jaq)
end
}