mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
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.
This commit is contained in:
committed by
Christian Clason
parent
4662ad5643
commit
a41b6fd173
@ -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)
|
||||
|
Reference in New Issue
Block a user