diff options
author | Abouzar Parvan <[email protected]> | 2021-12-23 13:03:20 +0330 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-23 10:33:20 +0100 |
commit | 655fd1b0ca5405ce67f3f8083ef6a4f7d2dedea0 (patch) | |
tree | 9342adbd10f36a9ad4dc266598078051ed45e8c9 /utils | |
parent | 55934998286357e5cba13848720c25494051510f (diff) |
refactor: uplift neovim's minimum version requirement to 0.6.0 (#2093)
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/installer/config.example.lua | 4 | ||||
-rwxr-xr-x | utils/installer/install.sh | 5 |
2 files changed, 3 insertions, 6 deletions
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 } |