Skip to content

fix(dashboard): fix M.have_plugin for mini.nvim explicitly#2631

Open
dpetka2001 wants to merge 1 commit intofolke:mainfrom
dpetka2001:fix/dashboard_sessions
Open

fix(dashboard): fix M.have_plugin for mini.nvim explicitly#2631
dpetka2001 wants to merge 1 commit intofolke:mainfrom
dpetka2001:fix/dashboard_sessions

Conversation

@dpetka2001
Copy link
Contributor

Description

Currently M.have_plugin only checks if the plugin name is in spec.plugins. When a user has mini.nvim installed that is not sufficient as its modules don't get enabled until their setup function is called. When they are setup, usually a global table for each module is present. For mini.sessions it's _G.MiniSessions.

Thus, it's better to check for the global table when mini.nvim is installed by a user to check if a module is actually setup.

Related Issue(s)

Fixes #2630

Screenshots

@github-actions github-actions bot added dashboard size/s Small PR (<10 lines changed) labels Dec 17, 2025
@dpetka2001 dpetka2001 force-pushed the fix/dashboard_sessions branch from 18e2967 to c8c30d0 Compare December 17, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: disabled mini.sessions is prioritized over auto-session in dashboard

1 participant