Replies: 4 comments 1 reply
-
Your autocmd works pretty good for me, i didn't see any errors, except that a empty buffer is created after opening a file via your autocmd opened dashboard |
Beta Was this translation helpful? Give feedback.
-
I am also getting the same error. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
i think your buffer count code has no big problems, since just running snacks.nvim/lua/snacks/dashboard.lua Line 851 in 972c61c vim.api.nvim_create_autocmd({ "BufRead" }, {
group = "DashboardAutoOpen",
callback = function()
if Snacks.dashboard.status.opened == true then
-- mimic normal dashboard fileopen
end
end
}) im really not an expert on this 😅 |
Beta Was this translation helpful? Give feedback.
-
Just wondering if anyone has a good way to automatically open the dashboard when all named buffers are closed?
I tried to do this by an auto-command, but it throws invalid buffer id errors the second time I go to the dashboard and open a new buffer, as well as hiding my lualine.
Here's what I tried:
Any guidance would be very much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions