mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(options): set default laststatus=3 and set it to 0 before loading dashboard to prevent flickering
This commit is contained in:
parent
d6b56c075e
commit
1eb019274b
2 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ opt.grepformat = "%f:%l:%c:%m"
|
|||
opt.grepprg = "rg --vimgrep"
|
||||
opt.ignorecase = true -- Ignore case
|
||||
opt.inccommand = "nosplit" -- preview incremental substitute
|
||||
opt.laststatus = 0
|
||||
opt.laststatus = 3 -- global statusline
|
||||
opt.list = true -- Show some invisible characters (tabs...
|
||||
opt.mouse = "a" -- Enable mouse mode
|
||||
opt.number = true -- Print line number
|
||||
|
|
|
@ -316,6 +316,7 @@ return {
|
|||
return dashboard
|
||||
end,
|
||||
config = function(_, dashboard)
|
||||
vim.o.laststatus = 0
|
||||
-- close Lazy and re-open when the dashboard is ready
|
||||
if vim.o.filetype == "lazy" then
|
||||
vim.cmd.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue