Skip to content

Commit

Permalink
Fix dashboard status autocmd
Browse files Browse the repository at this point in the history
Signed-off-by: Micah Halter <micah@balena.io>
  • Loading branch information
mehalter committed Apr 17, 2022
1 parent 426395d commit 6f8c1b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion lua/configs/dashboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function M.config()

local plugins_count = fn.len(vim.fn.globpath(fn.stdpath "data" .. "/site/pack/packer/start", "*", 0, 1))

g.dashboard_disable_statusline = 1
g.dashboard_default_executive = "telescope"
g.dashboard_custom_header = {
" ",
Expand Down
10 changes: 5 additions & 5 deletions lua/core/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ if utils.is_available "dashboard-nvim" and utils.is_available "bufferline.nvim"
desc = "Disable tabline for dashboard",
group = "dashboard_settings",
pattern = "dashboard",
command = "set showtabline=0",
command = "set showtabline=0 | autocmd WinLeave <buffer> set showtabline=2",
})
cmd("BufWinLeave", {
desc = "Reenable tabline when leaving dashboard",
cmd("FileType", {
desc = "Disable statusline for dashboard",
group = "dashboard_settings",
pattern = "<buffer>",
command = "set showtabline=2",
pattern = "dashboard",
command = "set laststatus=0 | autocmd WinLeave <buffer> set laststatus=3",
})
cmd("BufEnter", {
desc = "No cursorline on dashboard",
Expand Down

0 comments on commit 6f8c1b3

Please sign in to comment.