summaryrefslogtreecommitdiff
path: root/lua/autocommands/exit.lua
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-09 14:18:40 +0200
committerHampusM <hampus@hampusmat.com>2024-06-09 14:18:45 +0200
commit6b3b1c9e39d573ab32b22e615a5509b721529ddf (patch)
tree6043c75db6adef41e20500a16e7c6858a0401ad5 /lua/autocommands/exit.lua
parent17351b228abd9f953c2789f98b1403ea496b30a4 (diff)
remove nerdtree
Diffstat (limited to 'lua/autocommands/exit.lua')
-rw-r--r--lua/autocommands/exit.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/lua/autocommands/exit.lua b/lua/autocommands/exit.lua
index 8ffac46..150e980 100644
--- a/lua/autocommands/exit.lua
+++ b/lua/autocommands/exit.lua
@@ -1,15 +1,5 @@
require("utility.autocmd")
--- Exit Vim if NERDTree is the only window remaining in the only tab.
---[[
-autocmd(
- "BufEnter",
- "*",
- "if tabpagenr('$') == 1 && winnr('$') == 1 && " ..
- "exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif"
-)
-]]
-
-- Exit Vim if a terminal is the only window remaining in the only tab.
--[[
autocmd(
@@ -17,22 +7,5 @@ autocmd(
"*",
"if tabpagenr('$') == 1 && winnr('$') == 1 && g:is_term_open == 1 | quit | endif"
)
-
--- Exit Vim if the only windows remaining is NERDTree and terminal.
-autocmd(
- "BufEnter",
- "*",
- "if tabpagenr('$') == 1 && winnr('$') == 2 && g:NERDTree.IsOpen() && " ..
- "g:is_term_open == 1 | qall | endif"
-)
]]
--- Close a single NERDTree tab.
---[[
-autocmd(
- "BufEnter",
- "*",
- "if len(tabpagebuflist()) == 1 && bufname(tabpagebuflist()[0]) =~ \"^NERD_tree\" " ..
- "| tabclose | endif"
-)
-]]