aboutsummaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-05-09 22:05:41 +0800
committerjdhao <jdhao@hotmail.com>2022-05-09 22:06:17 +0800
commit13111596b8146d4885ddc0db3fc0bc579c3c0b13 (patch)
tree92d97582417fc56946b5b4b0d93d395c64af71f8 /init.vim
parent6cea10fcc5e2243592433a80bd3866f00687d463 (diff)
check if nvim version is correct, see also #51
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.vim b/init.vim
index ea2d67b..e9aabf0 100644
--- a/init.vim
+++ b/init.vim
@@ -8,6 +8,12 @@
" Email: jdhao@hotmail.com
" Blog: https://jdhao.github.io/
+" check if we have the lastest stable version of nvim
+if !has('nvim-0.7.0')
+ echohl Error | echomsg "Nvim 0.7.0 required, but is missing!" | echohl None
+ finish
+endif
+
let s:core_conf_files = [
\ 'globals.vim',
\ 'options.vim',