nvchad/lua/utils.lua

16 lines
383 B
Lua
Raw Normal View History

2021-07-08 23:44:04 -04:00
local M = {}
-- hide line numbers , statusline in specific buffers!
M.hideStuff = function()
vim.api.nvim_exec(
[[
au BufEnter term://* setlocal nonumber
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
au BufEnter term://* set laststatus=0
]],
false
)
end
return M