feat!: bump Neovim requirement to 0.11.2

This commit is contained in:
Folke Lemaitre
2025-09-17 07:01:08 +02:00
parent f54fd7f751
commit cccfe70ea4
4 changed files with 9 additions and 9 deletions

View File

@@ -2,13 +2,13 @@
## 15.x ## 15.x
**Neovim** `>= 0.11.0` includes a lot of changes to the underlying LSP implementation. **Neovim** `>= 0.11.2` includes a lot of changes to the underlying LSP implementation.
Going forward, **LazyVim** requires **Neovim** `>= 0.11.0`, and drops support for older versions. Going forward, **LazyVim** requires **Neovim** `>= 0.11.2`, and drops support for older versions.
### Changes ### Changes
- removed compatibility code for Neovim `< 0.11` - removed compatibility code for Neovim `< 0.11.2`
- updated all LSP code to use the new LSP implementation - updated all LSP code to use the new LSP implementation
- migrated **mason.nvim** and **mason-lspconfig.nvim** to `v2.x` - migrated **mason.nvim** and **mason-lspconfig.nvim** to `v2.x`
- added new `treesitter-main` extra to test the new `main` branch of `nvim-treesitter` - added new `treesitter-main` extra to test the new `main` branch of `nvim-treesitter`

View File

@@ -56,7 +56,7 @@ to tweak your config as needed, along with the convenience of a pre-configured s
## ⚡️ Requirements ## ⚡️ Requirements
- Neovim >= **0.11.0** (needs to be built with **LuaJIT**) - Neovim >= **0.11.2** (needs to be built with **LuaJIT**)
- Git >= **2.19.0** (for partial clones support) - Git >= **2.19.0** (for partial clones support)
- a [Nerd Font](https://www.nerdfonts.com/) **_(optional)_** - a [Nerd Font](https://www.nerdfonts.com/) **_(optional)_**
- a **C** compiler for `nvim-treesitter`. See [here](https://github.com/nvim-treesitter/nvim-treesitter#requirements) - a **C** compiler for `nvim-treesitter`. See [here](https://github.com/nvim-treesitter/nvim-treesitter#requirements)

View File

@@ -8,10 +8,10 @@ local error = vim.health.error or vim.health.report_error
function M.check() function M.check()
start("LazyVim") start("LazyVim")
if vim.fn.has("nvim-0.11.0") == 1 then if vim.fn.has("nvim-0.11.2") == 1 then
ok("Using Neovim >= 0.11.0") ok("Using Neovim >= 0.11.2")
else else
error("Neovim >= 0.11.0 is required") error("Neovim >= 0.11.2 is required")
end end
for _, cmd in ipairs({ "git", "rg", { "fd", "fdfind" }, "lazygit", "fzf", "curl" }) do for _, cmd in ipairs({ "git", "rg", { "fd", "fdfind" }, "lazygit", "fzf", "curl" }) do

View File

@@ -1,6 +1,6 @@
if vim.fn.has("nvim-0.11.0") == 0 then if vim.fn.has("nvim-0.11.2") == 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "LazyVim requires Neovim >= 0.11.0\n", "ErrorMsg" }, { "LazyVim requires Neovim >= 0.11.2\n", "ErrorMsg" },
{ "For more info, see: https://github.com/LazyVim/LazyVim/issues/6421\n", "Comment" }, { "For more info, see: https://github.com/LazyVim/LazyVim/issues/6421\n", "Comment" },
{ "Press any key to exit", "MoreMsg" }, { "Press any key to exit", "MoreMsg" },
}, true, {}) }, true, {})