fix(options): set default laststatus=3 and set it to 0 before loading dashboard to prevent flickering
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -16,7 +16,7 @@ opt.grepformat = "%f:%l:%c:%m"
|
|||||||
opt.grepprg = "rg --vimgrep"
|
opt.grepprg = "rg --vimgrep"
|
||||||
opt.ignorecase = true -- Ignore case
|
opt.ignorecase = true -- Ignore case
|
||||||
opt.inccommand = "nosplit" -- preview incremental substitute
|
opt.inccommand = "nosplit" -- preview incremental substitute
|
||||||
opt.laststatus = 0
|
opt.laststatus = 3 -- global statusline
|
||||||
opt.list = true -- Show some invisible characters (tabs...
|
opt.list = true -- Show some invisible characters (tabs...
|
||||||
opt.mouse = "a" -- Enable mouse mode
|
opt.mouse = "a" -- Enable mouse mode
|
||||||
opt.number = true -- Print line number
|
opt.number = true -- Print line number
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ return {
|
|||||||
return dashboard
|
return dashboard
|
||||||
end,
|
end,
|
||||||
config = function(_, dashboard)
|
config = function(_, dashboard)
|
||||||
|
vim.o.laststatus = 0
|
||||||
-- close Lazy and re-open when the dashboard is ready
|
-- close Lazy and re-open when the dashboard is ready
|
||||||
if vim.o.filetype == "lazy" then
|
if vim.o.filetype == "lazy" then
|
||||||
vim.cmd.close()
|
vim.cmd.close()
|
||||||
|
|||||||
Reference in new issue
Block a user