fix: add WinLeave autocmd to augroup
This commit is contained in:
parent
c6a2e3e08f
commit
6a227e932f
1 changed files with 2 additions and 0 deletions
|
|
@ -240,6 +240,8 @@ M.open_float = function(dir)
|
|||
})
|
||||
local winleave_autocmd
|
||||
winleave_autocmd = vim.api.nvim_create_autocmd("WinLeave", {
|
||||
desc = "Close floating oil window",
|
||||
group = "Oil",
|
||||
callback = vim.schedule_wrap(function()
|
||||
if util.is_floating_win() then
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue