From 4dd3e1398ad76b4174e4f48d41156fc04fa0dab1 Mon Sep 17 00:00:00 2001 From: chodak166 Date: Mon, 20 Apr 2026 22:15:52 +0200 Subject: [PATCH] Added just package to init-nvim.sh --- .config/nvim/lazy-lock.json | 2 +- .config/nvim/lua/plugins/just.lua | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/lua/plugins/just.lua diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 0633641..b5f9e3f 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -9,7 +9,7 @@ "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" }, "gitsigns.nvim": { "branch": "main", "commit": "8d82c240f190fc33723d48c308ccc1ed8baad69d" }, "grug-far.nvim": { "branch": "main", "commit": "21604255d0e8f9968322f61f2b6c09e5efe1285a" }, - "just.nvim": { "branch": "main", "commit": "816a4f9675704f5a63fd2743654b953493b9d3a9" }, + "just-runner.nvim": { "branch": "main", "commit": "f29d405aa828900df242600720a2b0e57261489f" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" }, "lualine.nvim": { "branch": "master", "commit": "a905eeebc4e63fdc48b5135d3bf8aea5618fb21c" }, diff --git a/.config/nvim/lua/plugins/just.lua b/.config/nvim/lua/plugins/just.lua new file mode 100644 index 0000000..e9f7c05 --- /dev/null +++ b/.config/nvim/lua/plugins/just.lua @@ -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! + { + "j", + function() + require("just-runner").run() + end, + desc = "Just Run", + mode = "n", + }, + }, +}