Did you check docs and existing issues?
Neovim version (nvim -v)
0.11.4
Operating system/version
MacOS 15.6.1 (24G90)
Describe the bug
Making a visual selection and sending {this} with <leader>at, or <leader>ap and selecting a prompt that contains {this}, line numbers inserted to opencode's input field are malformed.
I think the line number portion :L21-L22 is missing 3 characters so appears like 1-L22.
It also appears an additional space character is being inserted before the line portion, including other cli agents (claude code, codex etc), to form @file :L21-L22.
Steps To Reproduce
- Make a visual selection in a buffer
- Send
{this} with <leader>at or prompt with <leader>ap
- See malformed line numbers in opencode's input field
Expected Behavior
@file:L<N>-L<M> inserted to the input field of opencode.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{ "folke/sidekick.nvim", opts = {} },
-- add any other plugins here
},
})
Did you check docs and existing issues?
Neovim version (nvim -v)
0.11.4
Operating system/version
MacOS 15.6.1 (24G90)
Describe the bug
Making a visual selection and sending
{this}with<leader>at, or<leader>apand selecting a prompt that contains{this}, line numbers inserted to opencode's input field are malformed.I think the line number portion
:L21-L22is missing 3 characters so appears like1-L22.It also appears an additional space character is being inserted before the line portion, including other cli agents (claude code, codex etc), to form
@file :L21-L22.Steps To Reproduce
{this}with<leader>ator prompt with<leader>apExpected Behavior
@file:L<N>-L<M>inserted to the input field of opencode.Repro