60 lines
1.5 KiB
Lua
60 lines
1.5 KiB
Lua
-- 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
|
|
}
|