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" },