feat(nvim): add package jaq-nvim (just another quickrun)
This commit is contained in:
59
dot_config/nvim/lua/plugins/jaq.lua
Normal file
59
dot_config/nvim/lua/plugins/jaq.lua
Normal 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
|
||||||
|
}
|
Reference in New Issue
Block a user