neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a41b6fd17341d9e6dbbc7d7806060603ab3a9b7e
parent 4662ad5643b270958fa6dc3c0ded15800ce6faf6
Author: bekaboo <kankefengjing@gmail.com>
Date:   Fri, 14 Mar 2025 15:23:36 -0400

fix(lsp): autocmds to close lsp preview windows not cleared

Problem: Augroup to close lsp preview hover window is not cleared after
the window is closed because of unmatched group name.

Solution: Delete the augroup before closing the preview window with
correct group name.

Diffstat:
Mruntime/lua/vim/lsp/util.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua @@ -1345,7 +1345,7 @@ local function close_preview_window(winnr, bufnrs) return end - local augroup = 'preview_window_' .. winnr + local augroup = 'nvim.preview_window_' .. winnr pcall(api.nvim_del_augroup_by_name, augroup) pcall(api.nvim_win_close, winnr, true) end)