fix(ui): actually disable mini-indentscope on snacks_dashboard (#4947)

## Description

Disables mini.indentscope for the buffer on which the
`SnacksDashboardOpened` autocmd is called.

## Related Issue(s)

closes #4944

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Stefan Boca
2024-12-05 00:10:44 -08:00
committed by GitHub
parent 097b9e2f27
commit bfe29fb013

View File

@ -34,6 +34,13 @@ return {
vim.b.miniindentscope_disable = true
end,
})
vim.api.nvim_create_autocmd("User", {
pattern = "SnacksDashboardOpened",
callback = function(data)
vim.b[data.buf].miniindentscope_disable = true
end,
})
end,
},
{