folke / noice.nvim

💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: Cursor cannot move when I use %s (substitute)

Jaehaks opened this issue · comments

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.2.17.0 nvim-qt

Operating system/version

Windows 10

Describe the bug

I usually remap and to move cursor in command line and it works if I disable noice.nvim
Remapping code is written in keymaps.lua and call it first before noice configuration file.
When I hit :%s/ to substitute a word, Remapping key does not work

  1. :test => remapping key works
  2. :h %stest => remapping key works
  3. :%s/test =>remapping key dose not work

Turning off all format of cmdline and popup, It has same issue.

I cannot find any remapping and in noice.nvim code
image

Steps To Reproduce

  1. keymapping to h
  2. enter :%s/test
  3. enter

Expected Behavior

moving cursor function works

Repro

return {
	'folke/noice.nvim',
	--enabled = false,
	event = 'VeryLazy',
	dependencies = {
		'MunifTanjim/nui.nvim',
		'rcarriga/nvim-notify'
	},
	opts = {
		lsp = {
--			-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
--			override = {
--			  ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
--			  ["vim.lsp.util.stylize_markdown"] = true,
--			  ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
--			},
		},
		-- you can enable a preset for easier configuration
		presets = {
			bottom_search = true, -- use a classic bottom cmdline for search
			command_palette = true, -- position the cmdline and popupmenu together
			long_message_to_split = true, -- long messages will be sent to a split
			inc_rename = false, -- enables an input dialog for inc-rename.nvim
			lsp_doc_border = true, -- add a border to hover docs and signature help
		},
		messages = {
			enabled = true,
			view = 'mini',			-- show message in right bottom, short delay
			view_error = 'popup',
			view_warn = 'mini',
			view_history = 'messages',
			view_search = 'virtualtext'
		},
		cmdline = {
			enabled = true,
			view = 'cmdline_popup',
		}
	}
}