Skip to content

Commit 5477d67

Browse files
committed
v2.0.0
1 parent a3f07c3 commit 5477d67

File tree

3 files changed

+59
-2
lines changed

3 files changed

+59
-2
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# Changelog
22

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+
360
## [1.32.0](https://github.com/williamboman/mason-lspconfig.nvim/compare/v1.31.0...v1.32.0) (2025-02-14)
461

562

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<code>:help mason-lspconfig.nvim</code>
1717
</p>
1818
<p align="center">
19-
<sup>Latest version: v2.0.0-rc.1</sup> <!-- x-release-please-version -->
19+
<sup>Latest version: v2.0.0</sup> <!-- x-release-please-version -->
2020
</p>
2121

2222
# Table of Contents

lua/mason-lspconfig/version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local M = {}
22

3-
M.VERSION = "v2.0.0-rc.1" -- x-release-please-version
3+
M.VERSION = "v2.0.0" -- x-release-please-version
44
M.MAJOR_VERSION = 2 -- x-release-please-major
55
M.MINOR_VERSION = 0 -- x-release-please-minor
66
M.PATCH_VERSION = 0 -- x-release-please-patch

0 commit comments

Comments
 (0)