diff options
| author | kylo252 <[email protected]> | 2021-12-06 17:04:46 +0100 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-06 17:04:46 +0100 | 
| commit | 6770808bec1ffcada425ae514747f9380e3d3b8d (patch) | |
| tree | 657712b9a93588b16db9646446089f6f084c9b65 /utils | |
| parent | 38a172434027c9ac2a71cd658803ec3f7a39ab09 (diff) | |
feat: full compatibility with neovim v0.6 (#2037)
Diffstat (limited to 'utils')
| -rwxr-xr-x | utils/installer/install.sh | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/utils/installer/install.sh b/utils/installer/install.sh index b6b7bc31..88c3e550 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -174,6 +174,17 @@ function print_missing_dep_msg() {    fi  } +function check_neovim_min_version() { +  # TODO: consider locking the requirement to 0.6+ +  local verify_version_cmd='if !has("nvim-0.5.1") | cquit | else | quit | endif' + +  # exit with an error if min_version not found +  if ! nvim --headless -u NONE -c "$verify_version_cmd"; then +    echo "[ERROR]: LunarVim requires at least Neovim v0.5.1 or higher" +    exit 1 +  fi +} +  function check_system_deps() {    if ! command -v git &>/dev/null; then      print_missing_dep_msg "git" @@ -183,6 +194,7 @@ function check_system_deps() {      print_missing_dep_msg "neovim"      exit 1    fi +  check_neovim_min_version  }  function __install_nodejs_deps_npm() { | 
