automatically close a terminal buffer if it has exited/returned
This commit is contained in:
parent
15f20e8437
commit
f35aa3c604
@ -5,6 +5,7 @@ M.hideStuff = function()
|
|||||||
vim.api.nvim_exec(
|
vim.api.nvim_exec(
|
||||||
[[
|
[[
|
||||||
au TermOpen term://* setlocal nonumber laststatus=0
|
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
|
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
|
||||||
]],
|
]],
|
||||||
false
|
false
|
||||||
|
Loading…
Reference in New Issue
Block a user