Skip to content

Commit

Permalink
fix(doom): Fix center generation without a config
Browse files Browse the repository at this point in the history
  • Loading branch information
polirritmico committed Aug 9, 2024
1 parent d5cfa1b commit 38aa6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dashboard/theme/doom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local function gen_center_base(config)
if not config.center then
local msg = utils.center_align({ 'Please config your own center section', '' })
api.nvim_buf_set_lines(config.bufnr, vert_offset, -1, false, msg)
return
return {}
end

local lines = gen_center_icons_and_descriptions(config)
Expand Down Expand Up @@ -271,7 +271,7 @@ local function theme_instance(config)

vim.bo[config.bufnr].modifiable = false
vim.bo[config.bufnr].modified = false
--defer until next event loop
-- defer until next event loop
vim.schedule(function()
api.nvim_exec_autocmds('User', {
pattern = 'DashboardLoaded',
Expand Down

0 comments on commit 38aa6bb

Please sign in to comment.