aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorRaphael <glephunter@gmail.com>2022-07-18 07:11:41 +0800
committerGitHub <noreply@github.com>2022-07-17 16:11:41 -0700
commit776913e32ea4526847b1fffe2959d2b1f7d67451 (patch)
treeaf941aae5c53c6f925d5462792a9f61c110aa8e6 /runtime/lua/vim/lsp/util.lua
parent9169fb8f07238efd9fd0d0781c64c04abd1fa1ce (diff)
downloadrneovim-776913e32ea4526847b1fffe2959d2b1f7d67451.tar.gz
rneovim-776913e32ea4526847b1fffe2959d2b1f7d67451.tar.bz2
rneovim-776913e32ea4526847b1fffe2959d2b1f7d67451.zip
fix: add group in autocmd api #19412
regression from PR #19283: custom close autocommands for the preview window were not cleaned up after the window was closed.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 89b2301aa7..70f5010256 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1395,6 +1395,7 @@ local function close_preview_autocmd(events, winnr, bufnrs)
if #events > 0 then
api.nvim_create_autocmd(events, {
+ group = augroup,
buffer = bufnrs[2],
callback = function()
close_preview_window(winnr)