From e15e79b5195cebaecb657cb3c04ea1355848283b Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 20 Aug 2021 15:14:15 +0530 Subject: [PATCH] options.lua: Merge the TermOpen autocommands --- lua/options.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index 62f4515..647ee3e 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -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() ]]