Update everything, fix opencode/nvim stuff

This commit is contained in:
2026-04-27 18:24:56 +02:00
parent d1ba716721
commit 2941c39e4b
11 changed files with 80 additions and 37 deletions
+2 -2
View File
@@ -264,12 +264,12 @@ Snacks.picker.jj_show = function(ref)
jj_gsplit = function(picker, item)
picker:close()
local commit = vim.trim(vim.fn.system({ "jj", "show", ref, "--template", "commit_id", "--no-patch" }))
vim.cmd('Gvsplit ' .. vim.fn.fnameescape(commit .. ':' .. item.file))
vim.cmd('Gsplit ' .. vim.fn.fnameescape(commit .. ':' .. item.file))
end,
jj_gvsplit = function(picker, item)
picker:close()
local commit = vim.trim(vim.fn.system({ "jj", "show", ref, "--template", "commit_id", "--no-patch" }))
vim.cmd('Gsplit ' .. vim.fn.fnameescape(commit .. ':' .. item.file))
vim.cmd('Gvsplit ' .. vim.fn.fnameescape(commit .. ':' .. item.file))
end,
},
})
+20
View File
@@ -100,6 +100,7 @@ return {
}
},
picker = {
main = { current = true },
win = {
input = {
keys = {
@@ -265,6 +266,25 @@ return {
require(".jj-snacks")
Snacks.picker.git_show = git_show
vim.g.unception_block_while_host_edits = 1
vim.api.nvim_create_autocmd("User", {
pattern = "UnceptionEditRequestReceived",
callback = function()
for _, terminal in ipairs(Snacks.terminal.list()) do
if terminal.opts.fixbuf ~= false then
terminal.opts.fixbuf = false
vim.api.nvim_create_autocmd("BufEnter", {
buffer = terminal.buf,
once = true,
callback = function()
terminal.opts.fixbuf = true
end,
})
end
end
end,
})
vim.keymap.set("n", "<leader>zz", function() Snacks.zen() end, { desc = "Toggle zen mode" })
vim.keymap.set("n", "<leader>f", function()