mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(ui): use nowait for q mapping in floating window (#16427)
This commit is contained in:
		| @@ -1314,7 +1314,7 @@ function M.open_floating_preview(contents, syntax, opts) | ||||
|  | ||||
|   api.nvim_buf_set_option(floating_bufnr, 'modifiable', false) | ||||
|   api.nvim_buf_set_option(floating_bufnr, 'bufhidden', 'wipe') | ||||
|   api.nvim_buf_set_keymap(floating_bufnr, "n", "q", "<cmd>bdelete<cr>", {silent = true, noremap = true}) | ||||
|   api.nvim_buf_set_keymap(floating_bufnr, "n", "q", "<cmd>bdelete<cr>", {silent = true, noremap = true, nowait = true}) | ||||
|   M.close_preview_autocmd(opts.close_events, floating_winnr) | ||||
|  | ||||
|   -- save focus_id | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ii14
					ii14