Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix(core): Updated minimum neovim version to 0.7.0 + added updating n…
Browse files Browse the repository at this point in the history
…eovim docs.
  • Loading branch information
connorgmeean committed Aug 12, 2022
1 parent 6944c8f commit ec17813
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
17 changes: 17 additions & 0 deletions docs/updating-neovim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Updating Neovim

Doom-nvim currently requires neovim `^v0.7.x`, check your neovim version by running `nvim -v` in the command line.

## MacOS / Brew

1. Ensure you have [https://brew.sh/](https://brew.sh/) installed.
2. Run `brew install neovim` to install the latest version.

## Ubuntu / apt-get

Ubuntu doesn't always have the latest neovim in its own internal PPA. You will have to add the neovim ppa to get the latest versions.

1. Ensue you have software-properties-common (allows you to add extra ppa sources): `sudo apt install software-properties-common -y`.
2. Import the stable nim ppa. `sudo add-apt-repository ppa:neovim-ppa/stable -y`.
3. Run update to sync changes `sudo apt-get update`.
4. Install the latest stable neovim: `sudo apt install neovim -y`
15 changes: 9 additions & 6 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
-- Check if user is running Doom in a supported Neovim version before trying to load anything
if vim.fn.has("nvim-0.6.0") ~= 1 then
vim.notify(
"You are using an unsupported Neovim version, doom-nvim requires at least Neovim 0.6.0 to work as expected.\nPlease consider upgrading Neovim before using doom-nvim",
vim.log.levels.ERROR
)
return
if vim.fn.has("nvim-0.7.0") ~= 0 then
local message = table.concat({
"You are using an unsupported version of Neovim.",
"",
"Doom nvim and many of its plugins require at least version 0.7.0 to work as expected.",
"Consider updating if you run into issues.",
"https://github.com/NTBBloodbath/doom-nvim/blob/main/docs/updating-nvim.md"
}, "\n")
vim.notify(message, vim.log.levels.ERROR)
end

-- Makes sure ~/.local/share/nvim exists, to prevent problems with logging
Expand Down

0 comments on commit ec17813

Please sign in to comment.