add disable option for statusline hide au

This commit is contained in:
zbirenbaum 2022-04-08 23:04:35 -04:00 committed by siduck
parent b21defd4e4
commit d7522a940d
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,9 @@ if not settings.terminal_numbers then
end end
-- Don't show status line on certain windows -- Don't show status line on certain windows
vim.cmd [[ autocmd BufEnter,BufRead,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]] if not require("core.utils").load_config().plugins.options.statusline.hide_disable then
vim.cmd [[ autocmd BufEnter,BufRead,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]]
end
-- Open a file from its last left off position -- Open a file from its last left off position
-- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]] -- vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]

View File

@ -129,6 +129,7 @@ M.plugins = {
snippet_path = {}, snippet_path = {},
}, },
statusline = { statusline = {
hide_disable = false,
-- hide, show on specific filetypes -- hide, show on specific filetypes
hidden = { hidden = {
"help", "help",