fix(dashboard): allow dashboard to be the main editor window

This commit is contained in:
Folke Lemaitre 2025-02-14 07:04:56 +01:00
parent 121e74e4a5
commit e3ead3c648
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 3 additions and 2 deletions

View file

@ -240,6 +240,7 @@ function D:init()
vim.o.ei = "all"
Snacks.util.wo(self.win, Snacks.config.styles.dashboard.wo)
Snacks.util.bo(self.buf, Snacks.config.styles.dashboard.bo)
vim.b[self.buf].snacks_main = true
vim.o.ei = ""
if self:is_float() then
vim.keymap.set("n", "<esc>", "<cmd>bd<cr>", { silent = true, buffer = self.buf })