Skip to content

Commit

Permalink
feat!: bump required Neovim version to >= 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 18, 2024
1 parent a25b7c5 commit 6c5290a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_**
Expand Down
10 changes: 5 additions & 5 deletions lua/noice/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6c5290a

Please sign in to comment.