Skip to content

Commit

Permalink
fix(ui): use nowait for q mapping in floating window (neovim#16427)
Browse files Browse the repository at this point in the history
  • Loading branch information
ii14 authored Nov 24, 2021
1 parent a2e5c2f commit c132144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lua/vim/lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c132144

Please sign in to comment.