nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

Key mapping for <c-f>/<c-b> not reset when leaving window while float is open #1447

Closed mikehaertl closed 1 month ago

mikehaertl commented 1 month ago

Describe the bug

mappings for <c-f> and <c-b> are not reset when hover is open and you switch to another window

(Related similar bug: #1239)

Steps to reproduce

  1. Open two files in a split window
  2. Open hover in top window with :Lspsaga hover_doc
  3. Switch to bottom window while float is open e.g with <c-w> j
  4. Go back to the top window <c-w> p

Expected behavior

<c-f> and <c-b> should scroll the top window. But they are mapped to a method in lspsaga:

:nmap <c-f>
n  <C-F>       *@<Lua 832: ~/.local/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/util.lua:88>

:nmap <c-b>
n  <C-B>       *@<Lua 831: ~/.local/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/util.lua:88>

Neovim version (nvim -v)

0.10.0

lspsaga commit

e050ff4

Terminal name/version

Gnome Terminal 3.44.0