lazy.nvim icon indicating copy to clipboard operation
lazy.nvim copied to clipboard

feature: Add a `provides` option

Open UnaTried opened this issue 8 months ago • 3 comments

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!

UnaTried avatar Mar 21 '25 23:03 UnaTried

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.

github-actions[bot] avatar Apr 25 '25 02:04 github-actions[bot]

Man I hate the stale bot

UnaTried avatar Apr 27 '25 05:04 UnaTried

Hm... Why the feature is needed?

Shougo avatar Apr 27 '25 05:04 Shougo

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.

github-actions[bot] avatar May 28 '25 02:05 github-actions[bot]

No

UnaTried avatar May 28 '25 04:05 UnaTried

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.

github-actions[bot] avatar Jun 29 '25 02:06 github-actions[bot]

Psst

UnaTried avatar Jun 29 '25 05:06 UnaTried

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.

github-actions[bot] avatar Jul 30 '25 02:07 github-actions[bot]

No.

UnaTried avatar Jul 30 '25 12:07 UnaTried

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.

github-actions[bot] avatar Aug 31 '25 02:08 github-actions[bot]

Lalalalala

UnaTried avatar Aug 31 '25 08:08 UnaTried

soon will be stale

UnaTried avatar Sep 30 '25 13:09 UnaTried