From 652f703767cc6ddd8ce5d898395247fc9a0858e6 Mon Sep 17 00:00:00 2001 From: Galen Rowell Date: Thu, 22 Jul 2021 17:45:47 +1000 Subject: [PATCH 1/3] Fix term crash bug, no auto-close finished term anymore --- lua/utils.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/utils.lua b/lua/utils.lua index f829114d..9765f54c 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -2,7 +2,6 @@ vim.api.nvim_exec( [[ au TermOpen term://* setlocal nonumber laststatus=0 - au TermClose term://* bd! au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif ]], false From 0d69a528a8e2585f4feb6b61f23d393dc5d76300 Mon Sep 17 00:00:00 2001 From: Galen Rowell Date: Thu, 22 Jul 2021 18:04:21 +1000 Subject: [PATCH 2/3] Fix statusline issue --- lua/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/utils.lua b/lua/utils.lua index 9765f54c..f55bd597 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -1,7 +1,7 @@ -- hide line numbers , statusline in specific buffers! vim.api.nvim_exec( [[ - au TermOpen term://* setlocal nonumber laststatus=0 + au TermOpen term://* setlocal nonumber au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif ]], false From f8727f16599093c646b735ad9815788ec3f379b8 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 23 Jul 2021 18:03:04 +0530 Subject: [PATCH 3/3] Update utils.lua --- lua/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/utils.lua b/lua/utils.lua index f55bd597..271928b3 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -1,7 +1,7 @@ -- hide line numbers , statusline in specific buffers! vim.api.nvim_exec( [[ - au TermOpen term://* setlocal nonumber + au TermOpen term://* setlocal nonumber laststatus=0 au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif ]], false