add disable option for statusline hide au
This commit is contained in:
parent
b21defd4e4
commit
d7522a940d
|
@ -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 ]]
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue