From 7f0e1dce806a72d84896c52e874443744dfff129 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Mon, 20 May 2024 11:45:46 +0200 Subject: [PATCH] chore: add version requirement check --- lua/genghis/init.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lua/genghis/init.lua b/lua/genghis/init.lua index 122ef03..94723fe 100644 --- a/lua/genghis/init.lua +++ b/lua/genghis/init.lua @@ -1,13 +1,18 @@ -local M = {} +local version = vim.version() +if version.major == 0 and version.minor < 10 then + vim.notify("nvim-genghis requires at least nvim 0.10.", vim.log.levels.WARN) + return +end -local fn = vim.fn -local cmd = vim.cmd +-------------------------------------------------------------------------------- +local M = {} local mv = require("genghis.file-movement") local u = require("genghis.utils") +local fn = vim.fn +local cmd = vim.cmd local osPathSep = package.config:sub(1, 1) - -------------------------------------------------------------------------------- ---Performing common file operation tasks