diff --git a/.config/nvim/lua/pluginconf/nterm.lua b/.config/nvim/lua/pluginconf/nterm.lua index 9cb68f2..9833d06 100644 --- a/.config/nvim/lua/pluginconf/nterm.lua +++ b/.config/nvim/lua/pluginconf/nterm.lua @@ -5,3 +5,8 @@ nterm.setup { mode = "vertical", noinsert = true, } + +vim.api.nvim_create_autocmd("User", { + pattern = "NeotermTermLeave", + callback = nterm.close, +})