Remove term autocmds that no longer works

This commit is contained in:
2023-09-15 22:41:09 +02:00
parent 21b3eeaa4f
commit 9bf8b587e7
-11
View File
@@ -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, })