From 6c5290ad947a97c34889debe59bafe771a9f9578 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 18 May 2024 11:05:48 +0200 Subject: [PATCH] feat!: bump required Neovim version to >= 0.9 --- README.md | 2 +- lua/noice/health.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8a3d39cd..fcb38db1 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Check this [tracking issue](https://github.com/folke/noice.nvim/issues/6) for a ## ⚡️ Requirements -- Neovim >= 0.8.0 **_(nightly highly recommended)_** +- Neovim >= 0.9.0 **_(nightly highly recommended)_** - [nui.nvim](https://github.com/MunifTanjim/nui.nvim): used for proper rendering and multiple views - [nvim-notify](https://github.com/rcarriga/nvim-notify): notification view _**(optional)**_ - a [Nerd Font](https://www.nerdfonts.com/) **_(optional)_** diff --git a/lua/noice/health.lua b/lua/noice/health.lua index 881d36a9..9ccddacf 100644 --- a/lua/noice/health.lua +++ b/lua/noice/health.lua @@ -58,16 +58,16 @@ function M.check(opts) log.start() - if vim.fn.has("nvim-0.8.0") ~= 1 then - log.error("Noice needs Neovim >= 0.8.0") + if vim.fn.has("nvim-0.9.0") ~= 1 then + log.error("Noice requires Neovim >= 0.9.0") -- require("noice.util").error("Noice needs Neovim >= 0.9.0 (nightly)") if not opts.checkhealth then return end else - log.ok("**Neovim** >= 0.8.0") - if opts.checkhealth and vim.fn.has("nvim-0.9.0") ~= 1 then - log.warn("**Neovim** 0.9.0 (nightly) is recommended, since it fixes some issues related to `vim.ui_attach`") + log.ok("**Neovim** >= 0.9.0") + if opts.checkhealth and vim.fn.has("nvim-0.10.0") ~= 1 then + log.warn("**Neovim** >= 0.10 is highly recommended, since it fixes some issues related to `vim.ui_attach`") end end