diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2021-11-24 23:57:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 15:57:33 -0700 |
commit | c132144d2458ff9458c9f7a24e280d37cdd8c216 (patch) | |
tree | 4fcc26a89804f5eebea9c62c3f8828c307c52f9e /runtime/lua/vim/lsp/util.lua | |
parent | a2e5c2f7c8ec2b236a0c33cf9fc3cbab17c6cfcd (diff) | |
download | rneovim-c132144d2458ff9458c9f7a24e280d37cdd8c216.tar.gz rneovim-c132144d2458ff9458c9f7a24e280d37cdd8c216.tar.bz2 rneovim-c132144d2458ff9458c9f7a24e280d37cdd8c216.zip |
fix(ui): use nowait for q mapping in floating window (#16427)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index ba5c20ef9f..d18a7dee23 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -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 |