Closed dylan-chong closed 4 hours ago
For now, i'm working around the issue by using the command mode buffer
function CopyPath(expand)
local string = vim.fn.expand(expand)
vim.fn.setreg('+', string)
print('Copied: ' .. string)
end
lvim.builtin.which_key.mappings['%'] = {
":lua CopyPath('%:p')<Left><Left><Left><C-f>i", -- added <C-f>i
"Copy file path"
}
I have the same issue on MacOS. Workaround also work, but not with Noice unfortunatly. It forces traditional cmd mode.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
still an issue
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.4
Operating system/version
Ubuntu 22.04.3 LTS
Describe the bug
Command mode prompt is invisible until user types after triggering the mapping, e.g. the example below (which is in the repro lua)
{ ':echo "hello but not pressing enter"', 'example' }
Steps To Reproduce
nvim -u repro.lua
<space>%
a
Expected Behavior
Command mode should show up at the end of step 2 with cursor at the end of the line
Repro