🐛 fix(nvim): add snacks to the dashboard toggle keymap

This commit is contained in:
Sergio Laín 2024-11-24 13:06:24 +01:00
parent c174e1fe9c
commit ef1e62a60b
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438

View file

@ -177,7 +177,9 @@ map("x", "#", [[y?\V<C-R>=escape(@", '?\')<CR><CR>]], { desc = "Search Selected
-- Dashboard
map("n", "<leader>fd", function()
if LazyVim.has("alpha-nvim") then
if LazyVim.has("snacks.nvim") then
Snacks.dashboard()
elseif LazyVim.has("alpha-nvim") then
require("alpha").start(true)
elseif LazyVim.has("dashboard-nvim") then
vim.cmd("Dashboard")