From 9d1355ca6cd27e8b9e82ca4fcebd6dbc59d16af9 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 2 Sep 2023 21:51:28 +0200 Subject: [PATCH] Add neovim version check --- lua/bootstrap.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/bootstrap.lua b/lua/bootstrap.lua index 1c22750..bdd4a9e 100644 --- a/lua/bootstrap.lua +++ b/lua/bootstrap.lua @@ -14,6 +14,14 @@ limitations under the License. ]] +local version = vim.version() + +if version.major == 0 then + if version.minor < 10 then + error("Neovim version 0.10 or above is required with this configuration.") + end +end + local utils = require("utils") -- Install lazy.nvim