Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit d092b44

Browse files
committed
fix: proper conditional for triggering dashboard-nvim plugin (re-apply)
1 parent b6d5a1a commit d092b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ vim.defer_fn(function()
4747
-- If the current buffer name is empty then trigger Dashboard.
4848
-- NOTE: this is done to avoid some weird issues with Dashboard and
4949
-- number / signcolumn when Dashboard gets triggered automatically
50-
if vim.api.nvim_buf_get_name(0):len() == 0 then
50+
if (vim.api.nvim_buf_get_name(0):len() == 0) and packer_plugins["dashboard-nvim"] then
5151
vim.cmd("Dashboard")
5252
end
5353
end

0 commit comments

Comments
 (0)