feat(extras): expose prios to users for customization (#4587)

## Description
Offer to users capability to customize priorities of the Extras.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Closes #4584
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Iordanis Petkakis
2024-10-23 12:26:14 +03:00
committed by GitHub
parent 27f53eaa1e
commit e46cb62a17

View File

@ -10,6 +10,10 @@ local prios = {
["lazyvim.plugins.extras.editor.outline"] = 100,
}
if vim.g.xtras_prios then
prios = vim.tbl_deep_extend("force", prios, vim.g.xtras_prios or {})
end
---@type string[]
local extras = LazyVim.dedup(LazyVim.config.json.data.extras)