This commit is contained in:
2025-07-21 14:18:12 -04:00
parent e454117fd7
commit a3321cce9e

View File

@@ -22,6 +22,23 @@ map("n", "<C-h>", "<C-w><C-h>") -- Focus
map("n", "<C-l>", "<C-w><C-l>") -- Focus left map("n", "<C-l>", "<C-w><C-l>") -- Focus left
map("n", "<C-j>", "<C-w><C-j>") -- Focus down map("n", "<C-j>", "<C-w><C-j>") -- Focus down
map("n", "<C-k>", "<C-w><C-k>") -- Focus up map("n", "<C-k>", "<C-w><C-k>") -- Focus up
vim.keymap.set("n", "<leader>e", function() -- Populate then toggle the quick-fix list
vim.diagnostic.setqflist({ open = false })
local is_open = false
for _, win in ipairs(vim.fn.getwininfo()) do
if win.quickfix == 1 then
is_open = true
break
end
end
vim.schedule(function()
if is_open then
vim.cmd("cclose")
else
vim.cmd("copen")
end
end)
end)
-- Visual settings -- Visual settings
opt.inccommand = "split" -- Live substitution preview opt.inccommand = "split" -- Live substitution preview