mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
minor tweak: version checking
This commit is contained in:
parent
ae759477c7
commit
6dfaf2c521
7
init.vim
7
init.vim
@ -9,8 +9,11 @@
|
|||||||
" Blog: https://jdhao.github.io/
|
" Blog: https://jdhao.github.io/
|
||||||
|
|
||||||
" check if we have the lastest stable version of nvim
|
" check if we have the lastest stable version of nvim
|
||||||
if !has('nvim-0.7.2')
|
let s:expect_ver = printf('nvim-%s', '0.7.2')
|
||||||
echohl Error | echomsg "Nvim 0.7.2 required, but is missing!" | echohl None
|
let s:actual_ver = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
|
||||||
|
|
||||||
|
if !has(s:expect_ver)
|
||||||
|
echohl Error | echomsg printf("%s required, but got nvim %s!", s:expect_ver, s:actual_ver) | echohl None
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user