Skip to content
Discussion options

You must be logged in to vote
vim.o.winborder = 'single'

vim.api.nvim_create_autocmd('User', {
  pattern = { 'SnacksDashboardOpened', 'SnacksDashboardUpdatePost' },
  callback = function()
    for _, win in ipairs(vim.api.nvim_list_wins()) do
      local conf = vim.api.nvim_win_get_config(win)
      local buf = vim.api.nvim_win_get_buf(win)
      local ft = vim.bo[buf].ft
      -- NOTE: Why is it snacks_dashboard?
      if ft == 'snacks_dashboard' and conf.relative ~= '' then
        vim.api.nvim_win_set_config(win, { border = 'none' })
      end
    end
  end,
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@itsonlyjames
Comment options

@drowning-cat
Comment options

Answer selected by itsonlyjames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants