diff options
Diffstat (limited to 'lua/autocommands')
-rw-r--r-- | lua/autocommands/NERDTree.lua | 1 | ||||
-rw-r--r-- | lua/autocommands/exit.lua | 27 | ||||
-rw-r--r-- | lua/autocommands/init.lua | 1 |
3 files changed, 0 insertions, 29 deletions
diff --git a/lua/autocommands/NERDTree.lua b/lua/autocommands/NERDTree.lua deleted file mode 100644 index 9e0acab..0000000 --- a/lua/autocommands/NERDTree.lua +++ /dev/null @@ -1 +0,0 @@ -autocmd("VimEnter", "*", "lua toggle_nerdtree()") 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" -) -]] diff --git a/lua/autocommands/init.lua b/lua/autocommands/init.lua index 23679e9..6c6729d 100644 --- a/lua/autocommands/init.lua +++ b/lua/autocommands/init.lua @@ -1,5 +1,4 @@ require("autocommands.coc") require("autocommands.exit") require("autocommands.buffer") -require("autocommands.NERDTree") |