We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug when i use hot key to save my file,i get an error notice and the command was executed
Which version of Neovim are you using? Nightly
To Reproduce hot key like this
noremap <C-s> :<C-U><C-R>=printf("w")<CR><CR>
if i use the cmdline to input :w, there's no error
:w
Config
lua << EOF local noice = require("noice") noice.setup({ cmdline = { format = { cmdline = { pattern = "^:", icon = "💬 ", lang = "vim" }, search_down = { kind = "search", pattern = "^/", icon = "🔍 ", lang = "regex" }, search_up = { kind = "search", pattern = "^%?", icon = "🔍 ", lang = "regex" }, } }, }) EOF
Screenshots
Noice Log
The text was updated successfully, but these errors were encountered:
a8402e8
The issue was cause by quickly opening and closing the cmdline. It's fixed now, but better to use the following mappings instead:
vim.keymap.set("i", "<C-s>", "<cmd>:w<cr><esc>") vim.keymap.set("n", "<C-s>", "<cmd>:w<cr><esc>")
The <cmd> is specially made to prevent opening the cmdline
<cmd>
Sorry, something went wrong.
Thank you, i'll try it
Successfully merging a pull request may close this issue.
Describe the bug
when i use hot key to save my file,i get an error notice and the command was executed
Which version of Neovim are you using?
Nightly
To Reproduce
hot key like this
if i use the cmdline to input
:w
, there's no errorConfig
Screenshots
Noice Log
The text was updated successfully, but these errors were encountered: