From 7d8bc680b3162a83a1383ee62912a7d934b53177 Mon Sep 17 00:00:00 2001 From: inkch Date: Fri, 25 Jul 2025 08:16:35 +0900 Subject: [PATCH] feat(nvim): add package jaq-nvim (just another quickrun) --- dot_config/nvim/lua/plugins/jaq.lua | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/jaq.lua diff --git a/dot_config/nvim/lua/plugins/jaq.lua b/dot_config/nvim/lua/plugins/jaq.lua new file mode 100644 index 0000000..2609d1f --- /dev/null +++ b/dot_config/nvim/lua/plugins/jaq.lua @@ -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", "r", vim.cmd.Jaq) + end +}