nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Allowed for `config.center.desc = ''` #329

Closed AlphabetsAlphabets closed 1 year ago

AlphabetsAlphabets commented 1 year ago
  local col = line:find('%w')
  if col then
    col = col - 1
  else
    col = 0
  end

Added this change and removed all lines that use col - 1.

This made it possible to do this

      require("dashboard").setup {
        theme = 'doom',
        config = {
          header = opts.header,
          footer = { opts.footer },
          center = {
            {
              desc = '',
            },
          },
        }
      }

A small note is that some the cursor is visible and all the way on the left and I can't figure out where to place the cursor. I've been looking for ways to hide the cursor, this should probably be in a separate issue or discussion.