options.lua: Merge the TermOpen autocommands

This commit is contained in:
Akianonymus 2021-08-20 15:14:15 +05:30 committed by siduck76
parent 1f6dbed26b
commit e15e79b519

View file

@ -76,9 +76,7 @@ end
-- vim.cmd[[ au InsertLeave * set relativenumber ]]
-- Don't show any numbers inside terminals
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber ]]
vim.cmd [[ au TermOpen term://* setfiletype terminal ]]
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]]
-- Don't show status line on certain windows
vim.cmd [[ autocmd BufEnter,BufWinEnter,WinEnter,CmdwinEnter,TermEnter * lua require("utils").hide_statusline() ]]