From 5e3461c5f3b30234e2c60a83685a34f83fde4747 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 13 Feb 2026 11:28:59 -0500 Subject: [PATCH] feat(core): add mapping to paste from system clipboard --- lua/plugins/astrocore.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/plugins/astrocore.lua b/lua/plugins/astrocore.lua index 7031190..854b4ad 100644 --- a/lua/plugins/astrocore.lua +++ b/lua/plugins/astrocore.lua @@ -387,7 +387,19 @@ return { end, desc = "Find Package.json files", }, - + [""] = { + function() + -- Pass through to TUI if in opencode + if vim.b.toggle_number == 99 then + vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("", 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", + }, [""] = { function() terminals.scratch_toggle() end, desc = "Open Scratch Terminal" }, -- AI/Assistant mappings (Avante) [""] = { terminals.opencode_toggle, desc = "Toggle OpenCode" },