From 482dc16d3ae2b2e6a8dfacd7e918ec0b354cc48f Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Sat, 7 Oct 2023 09:49:18 +0200 Subject: [PATCH] fix: Close windows on exiting --- lua/easytables/window.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/easytables/window.lua b/lua/easytables/window.lua index 1f557fc..53b5eee 100644 --- a/lua/easytables/window.lua +++ b/lua/easytables/window.lua @@ -170,6 +170,15 @@ function M:register_listeners() end, }) + vim.api.nvim_create_autocmd( + { "QuitPre" }, + { + callback = function() + self:close() + end + } + ) + vim.api.nvim_buf_create_user_command( self.prompt_buffer, "JumpToNextCell",