mirror of https://github.com/NvChad/NvChad
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
383 B
Lua
16 lines
383 B
Lua
3 years ago
|
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
|