lazy.nvim
lazy.nvim copied to clipboard
feature: Add a `provides` option
Did you check the docs?
- [x] I have read all the lazy.nvim docs
Is your feature request related to a problem? Please describe.
This is not related to a problem or bug
Describe the solution you'd like
I would like a provides option, that stops packages with the same name from being installed, as long as they aren't dependnecies.
How it would look:
return {
{
"stevearc/conform.nvim",
provides = "nvimtools/none-ls.nvim"
},
{
"williamboman/mason.nvim",
dependencies = {
"WhoIsSethDaniel/mason-tool-installer.nvim",
"jay-babu/mason-nvim-dap.nvim",
"williamboman/mason-lspconfig.nvim",
"RubixDev/mason-update-all",
"jay-babu/mason-null-ls.nvim",
"nvimtools/none-ls.nvim" -- being installed, MAYBE also prevents conform.nvim from being installed, except if it has the "bypass_provides" option, set to true
},
},
{
"rebelot/heirline.nvim",
provides = "nvim-lualine/lualine.nvim"
},
{
"hrsh7th/nvim-cmp",
provides = { "Shougo/ddc.nvim", "saghen/blink.cmp", "neoclide/coc.nvim" }
},
{
"nvim-java/nvim-java",
provides = { "mfussengger/nvim-jdtls" }
},
{
"mfussengger/nvim-jdtls" -- not being installed
},
}
Describe alternatives you've considered
I haven't considered anything, since it's adding a spec option...
Additional context
That should be everything!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Man I hate the stale bot
Hm... Why the feature is needed?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
No
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Psst
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
No.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Lalalalala
soon will be stale