mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(dashboard): allow dashboard to be the main editor window
This commit is contained in:
parent
121e74e4a5
commit
e3ead3c648
2 changed files with 3 additions and 2 deletions
|
@ -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 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue