diff --git a/fnl/conjure/mapping.fnl b/fnl/conjure/mapping.fnl index dd1b2ee9..d106b410 100644 --- a/fnl/conjure/mapping.fnl +++ b/fnl/conjure/mapping.fnl @@ -228,7 +228,7 @@ (nvim.ex.autocmd :VimLeavePre :* (bridge.viml->lua :conjure.log :clear-close-hud-passive-timer {})) - (nvim.ex.autocmd :ExitPre :* (viml->fn on-exit)) + (nvim.ex.autocmd :VimLeavePre :* (viml->fn on-exit)) (nvim.ex.autocmd :QuitPre :* (viml->fn on-quit)) (nvim.ex.augroup :END)) diff --git a/lua/conjure/mapping.lua b/lua/conjure/mapping.lua index 623756db..68568381 100644 --- a/lua/conjure/mapping.lua +++ b/lua/conjure/mapping.lua @@ -130,7 +130,7 @@ local function init(filetypes) nvim.ex.autocmd("CursorMoved", "*", bridge["viml->lua"]("conjure.inline", "clear", {})) nvim.ex.autocmd("CursorMovedI", "*", bridge["viml->lua"]("conjure.inline", "clear", {})) nvim.ex.autocmd("VimLeavePre", "*", bridge["viml->lua"]("conjure.log", "clear-close-hud-passive-timer", {})) - nvim.ex.autocmd("ExitPre", "*", ("lua require('" .. _2amodule_name_2a .. "')['" .. "on-exit" .. "']()")) + nvim.ex.autocmd("VimLeavePre", "*", ("lua require('" .. _2amodule_name_2a .. "')['" .. "on-exit" .. "']()")) nvim.ex.autocmd("QuitPre", "*", ("lua require('" .. _2amodule_name_2a .. "')['" .. "on-quit" .. "']()")) return nvim.ex.augroup("END") end