add dynamic header padding for dashboard | disable statusline in it
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
-- local autocmd = vim.api.nvim_create_autocmd
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
-- Disable statusline in dashboard
|
||||
autocmd("FileType", {
|
||||
pattern = "alpha",
|
||||
callback = function()
|
||||
vim.opt.laststatus = 0
|
||||
end,
|
||||
})
|
||||
|
||||
autocmd("BufUnload", {
|
||||
buffer = 0,
|
||||
callback = function()
|
||||
vim.opt.laststatus = 3
|
||||
end,
|
||||
})
|
||||
|
||||
-- Uncomment this if you want to open nvim with a dir
|
||||
-- autocmd("BufEnter", {
|
||||
|
||||
Reference in New Issue
Block a user