Skip to content

fix(dashboard): wrap nvim_del_augroup_by_id with pcall#2725

Open
scottmckendry wants to merge 1 commit intofolke:mainfrom
scottmckendry:dashboard-pcall
Open

fix(dashboard): wrap nvim_del_augroup_by_id with pcall#2725
scottmckendry wants to merge 1 commit intofolke:mainfrom
scottmckendry:dashboard-pcall

Conversation

@scottmckendry
Copy link
Contributor

Description

This pull request makes a minor improvement to the D:init() function in lua/snacks/dashboard.lua by safely handling the deletion of an autocommand group. The change wraps the call to vim.api.nvim_del_augroup_by_id in a pcall to prevent errors if the group does not exist or has already been deleted.

Related Issue(s)

@github-actions github-actions bot added dashboard size/xs Extra small PR (<3 lines changed) labels Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard size/xs Extra small PR (<3 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Dashboard - Error when opening files from picker

1 participant