From 6b3b1c9e39d573ab32b22e615a5509b721529ddf Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 9 Jun 2024 14:18:40 +0200 Subject: remove nerdtree --- lua/autocommands/NERDTree.lua | 1 - lua/autocommands/exit.lua | 27 --------------------------- lua/autocommands/init.lua | 1 - 3 files changed, 29 deletions(-) delete mode 100644 lua/autocommands/NERDTree.lua (limited to 'lua/autocommands') 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") -- cgit v1.2.3-18-g5258