mirror of
https://github.com/neovim/neovim
synced 2025-07-16 17:21:49 +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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local augroup = 'preview_window_' .. winnr
|
local augroup = 'nvim.preview_window_' .. winnr
|
||||||
pcall(api.nvim_del_augroup_by_name, augroup)
|
pcall(api.nvim_del_augroup_by_name, augroup)
|
||||||
pcall(api.nvim_win_close, winnr, true)
|
pcall(api.nvim_win_close, winnr, true)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user