feat(core): add mapping to paste from system clipboard

This commit is contained in:
Prad Nukala committed 2026-02-13 11:28:59 -05:00
1 parent c1666fe7a3
commit 5e3461c5f3
1 file changed
+13 -1
+13 -1
View File
@@ -387,7 +387,19 @@ return {
end,
desc = "Find Package.json files",
},
["<C-p>"] = {
function()
-- Pass through to TUI if in opencode
if vim.b.toggle_number == 99 then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<C-p>", true, false, true), "t", false)
return
end
-- Paste from clipboard in other terminals
local content = vim.fn.getreg "+"
vim.api.nvim_paste(content, true, -1)
end,
desc = "Paste from system clipboard",
},
["<C-j><C-j>"] = { function() terminals.scratch_toggle() end, desc = "Open Scratch Terminal" },
-- AI/Assistant mappings (Avante)
["<C-a><C-a>"] = { terminals.opencode_toggle, desc = "Toggle OpenCode" },