mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(ui): use nowait for q mapping in floating window (#16427)
This commit is contained in:
parent
a2e5c2f7c8
commit
c132144d24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user