-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Command mode prompt doesn't show until user types, when mapping opens command mode #553
Comments
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 |
I have migrated to v3 just now and unfortunatly the issue stills persists. If there is a new v3 way to get around it, please let us know. If not, would it be prudent to reopen? |
Not exactly the same, but maybe related: 0xAdk/full_visual_line.nvim/issues/4. |
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
The text was updated successfully, but these errors were encountered: