aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorbekaboo <kankefengjing@gmail.com>2025-03-14 15:23:36 -0400
committerChristian Clason <ch.clason+github@icloud.com>2025-03-15 14:59:06 +0100
commita41b6fd17341d9e6dbbc7d7806060603ab3a9b7e (patch)
treec9a769da71dbeb512c352076e4c19fff2d168dc4 /runtime/lua/vim
parent4662ad5643b270958fa6dc3c0ded15800ce6faf6 (diff)
downloadrneovim-a41b6fd17341d9e6dbbc7d7806060603ab3a9b7e.tar.gz
rneovim-a41b6fd17341d9e6dbbc7d7806060603ab3a9b7e.tar.bz2
rneovim-a41b6fd17341d9e6dbbc7d7806060603ab3a9b7e.zip
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 (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 307a55c2a2..056cb0c73c 100644
--- 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)