Skip to content

Whitespace is shown in Neovim's snacks dashboard (such as with LazyVim) #172

@nickjj

Description

@nickjj

Here's what it looks like:

Image

As soon as you click into the buffer then it disappears but how can you prevent showing it to begin with?

Here's the steps I tried:

  • I ran set ft and confirmed the filetype of this buffer is snacks_dashboard

Then I tried let g:better_whitespace_filetypes_blacklist=["snacks_dashboard"] which had no effect, the same result happened.

Then I tried:

vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
  pattern = { "snacks_dashboard" },
  callback = function()
    vim.cmd([[DisableWhitespace]])
  end,
})

This also had no effect, the same result happened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions