|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## [2.0.0](https://github.com/williamboman/mason.nvim/compare/v1.32.0...v2.0.0) (2025-05-06) |
| 4 | + |
| 5 | +This release adds support for the new native LSP configuration mechanism (see `vim.lsp.config`) added in Neovim v0.11. |
| 6 | +As a result, some existing features have been removed and a new `automatic_enable` feature has been added. |
| 7 | +`mason-lspconfig.nvim` now tries to get out of the way as much as possible and instead allow users to entirely rely on |
| 8 | +the new LSP configuration mechanism, while providing some convenient QoL features on top. |
| 9 | + |
| 10 | +> [!NOTE] |
| 11 | +> Not all LSP configurations in nvim-lspconfig have been migrated to `vim.lsp.config` yet. These servers will have to be |
| 12 | +> manually set up (`require("lspconfig").apex_ls.setup {}`). A full list may be found |
| 13 | +> [here](https://github.com/neovim/nvim-lspconfig/issues/3705). |
| 14 | +
|
| 15 | +### Repository has been moved |
| 16 | + |
| 17 | +The repository has been transferred to the [`mason-org`](https://github.com/mason-org) organization. The new URL is |
| 18 | +https://github.com/mason-org/mason-lspconfig.nvim. The previous URL will continue to function as a redirect to the new |
| 19 | +URL but users are recommended to update to the new location. |
| 20 | + |
| 21 | +### New location for server mappings |
| 22 | + |
| 23 | +Server mappings are now hosted via the [registry](https://github.com/mason-org/mason-registry) instead of bundled with `mason-lspconfig.nvim` itself. |
| 24 | + |
| 25 | +### Removed Features |
| 26 | + |
| 27 | +- Remove the `handlers` setting and `.setup_handlers()` function. It has been replaced by the new native |
| 28 | + `vim.lsp.config()` API and a new `automatic_enable` setting. |
| 29 | +- Remove the `automatic_installation` setting. This feature is no longer compatible with the new native LSP |
| 30 | + configuration mechanism. |
| 31 | + |
| 32 | +### New Features |
| 33 | + |
| 34 | +- Add new `automatic_enable` setting to automatically `vim.lsp.enable()` installed servers. It is by default activated. |
| 35 | + |
| 36 | +### Example Setup |
| 37 | + |
| 38 | +```lua |
| 39 | +-- Configure a server via `vim.lsp.config()` or `{after/}lsp/lua_ls.lua` |
| 40 | +vim.lsp.config('lua_ls', { |
| 41 | + settings = { |
| 42 | + Lua = { |
| 43 | + runtime = { |
| 44 | + version = 'LuaJIT', |
| 45 | + }, |
| 46 | + diagnostics = { |
| 47 | + globals = { |
| 48 | + 'vim', |
| 49 | + 'require', |
| 50 | + }, |
| 51 | + }, |
| 52 | + }, |
| 53 | + }, |
| 54 | +}) |
| 55 | + |
| 56 | +require("mason").setup() |
| 57 | +require("mason-lspconfig").setup() -- Note: `nvim-lspconfig` needs to be in 'runtimepath' by the time you setup |
| 58 | +``` |
| 59 | + |
3 | 60 | ## [1.32.0](https://github.com/williamboman/mason-lspconfig.nvim/compare/v1.31.0...v1.32.0) (2025-02-14)
|
4 | 61 |
|
5 | 62 |
|
|
0 commit comments