From a795f0914ffbcc9a63f540b85155defd2450f607 Mon Sep 17 00:00:00 2001 From: Matt Leong Date: Fri, 5 Nov 2021 08:52:38 -0700 Subject: [PATCH] feat(core): add check for nvim 0.6 --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index aad6e2e..ea20d1b 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,7 @@ +if not vim.fn.has('nvim-0.6') then + error('Need NVIM 0.6 in order to run Cosmic!!') +end + local ok, err = pcall(require, 'cosmic') if not ok then