From 9bf8b587e7e2277ced82e8a6e20c73e3acc9f198 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 15 Sep 2023 22:41:09 +0200 Subject: [PATCH] Remove term autocmds that no longer works --- lua/core/autocommands.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lua/core/autocommands.lua b/lua/core/autocommands.lua index 0a9394f..e65b32f 100644 --- a/lua/core/autocommands.lua +++ b/lua/core/autocommands.lua @@ -14,13 +14,6 @@ limitations under the License. ]] -local function term_close() - -- Split previous buffer, switching to it - vim.fn.execute("split " .. vim.fn.expand("#")) - -- Close previous window (terminal) - vim.fn.execute(vim.fn.winnr("#") .. "wincmd q") -end - local function open_file_tree() local ok, mod = pcall(require, "nvim-tree.api") if ok then @@ -33,8 +26,4 @@ local function open_file_tree() end end -vim.api.nvim_create_autocmd("TermClose", { - pattern = "term://*", - callback = term_close, -}) vim.api.nvim_create_autocmd("VimEnter", { callback = open_file_tree, })