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