From 655fd1b0ca5405ce67f3f8083ef6a4f7d2dedea0 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 23 Dec 2021 13:03:20 +0330 Subject: refactor: uplift neovim's minimum version requirement to 0.6.0 (#2093) Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com> --- utils/installer/config.example.lua | 4 +--- utils/installer/install.sh | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'utils') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 03906ada..51b5f349 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -100,9 +100,7 @@ lvim.builtin.treesitter.highlight.enabled = true -- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") -- end -- you can overwrite the null_ls setup table (useful for setting the root_dir function) --- lvim.lsp.null_ls.setup = { --- root_dir = require("lspconfig").util.root_pattern("Makefile", ".git", "node_modules"), --- } +-- lvim.lsp.null_ls.setup.root_dir = require("lspconfig").util.root_pattern("Makefile", ".git", "node_modules") -- or if you need something more advanced -- lvim.lsp.null_ls.setup.root_dir = function(fname) -- if vim.bo.filetype == "javascript" then diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 1dc77513..fbe920cf 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -171,12 +171,11 @@ function print_missing_dep_msg() { } 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' + local verify_version_cmd='if !has("nvim-0.6.0") | 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" + echo "[ERROR]: LunarVim requires at least Neovim v0.6.0 or higher" exit 1 fi } -- cgit v1.2.3