williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.22k stars 258 forks source link

Support ensure_installed directly in mason #1713

Open Limero opened 1 month ago

Limero commented 1 month ago

I've searched open issues for similar requests

Is your feature request related to a problem? Please describe.

As a follow-up to https://github.com/williamboman/mason.nvim/issues/483 which adds the ensure_installed option to mason-lspconfig. It would be great if the same functionality could be added to mason itself. I prefer to set up my lsps manually without the use of lspconfig and would want mason to just automatically install them, nothing else.

Describe the solution you'd like

ensure_installed being an option on mason.nvim without requring the use of mason-lspconfig.nvim.

To support the following:

require("mason").setup {
    ensure_installed = {
      "lua_ls",
      "rust_analyzer",
    },
}

Describe potential alternatives you've considered

No response

Additional context

No response