mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
refactor: lock new installations to nvim v0.7+ (#2526)
This commit is contained in:
parent
f49f687bc2
commit
3de829e76e
8 changed files with 8 additions and 9 deletions
|
@ -33,7 +33,7 @@ body:
|
|||
- type: input
|
||||
id: nvim-version
|
||||
attributes:
|
||||
label: Neovim version (>= 0.6.1)
|
||||
label: Neovim version (>= 0.7)
|
||||
description: "Output of `nvim --version`"
|
||||
placeholder: |
|
||||
NVIM v0.7-dev+209-g0603eba6e
|
||||
|
|
2
.github/ISSUE_TEMPLATE/lsp-issue-form.yaml
vendored
2
.github/ISSUE_TEMPLATE/lsp-issue-form.yaml
vendored
|
@ -27,7 +27,7 @@ body:
|
|||
- type: input
|
||||
id: nvim-version
|
||||
attributes:
|
||||
label: Neovim version (>= 0.6.1)
|
||||
label: Neovim version (>= 0.7)
|
||||
description: "Output of `nvim --version`"
|
||||
placeholder: |
|
||||
NVIM v0.7-dev+209-g0603eba6e
|
||||
|
|
2
.github/workflows/install.yaml
vendored
2
.github/workflows/install.yaml
vendored
|
@ -57,7 +57,7 @@ jobs:
|
|||
uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
neovim: true
|
||||
version: v0.6.1
|
||||
version: v0.7.0
|
||||
|
||||
- name: Install LunarVim
|
||||
timeout-minutes: 4
|
||||
|
|
2
.github/workflows/plugins.yml
vendored
2
.github/workflows/plugins.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
uses: rhysd/action-setup-vim@v1
|
||||
with:
|
||||
neovim: true
|
||||
version: v0.6.1
|
||||
version: v0.7
|
||||
|
||||
- name: Install LunarVim
|
||||
timeout-minutes: 4
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
## Install In One Command!
|
||||
|
||||
Make sure you have the release version of Neovim (0.6.1+).
|
||||
Make sure you have the release version of Neovim (0.7+).
|
||||
|
||||
### Linux:
|
||||
|
||||
|
|
|
@ -114,7 +114,6 @@ local core_plugins = {
|
|||
-- Treesitter
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
|
||||
-- run = ":TSUpdate",
|
||||
config = function()
|
||||
require("lvim.core.treesitter").setup()
|
||||
|
|
|
@ -82,7 +82,7 @@ function print_missing_dep_msg($dep) {
|
|||
Write-Output "Please install it first and re-run the installer."
|
||||
}
|
||||
|
||||
$winget_package_matrix=@{"git" = "Git.Git"; "nvim" = "nvim.nvim"; "make" = "GnuWin32.Make"; "node" = "OpenJS.NodeJS"; "pip" = "Python.Python.3"}
|
||||
$winget_package_matrix=@{"git" = "Git.Git"; "nvim" = "Neovim.Neovim"; "make" = "GnuWin32.Make"; "node" = "OpenJS.NodeJS"; "pip" = "Python.Python.3"}
|
||||
$scoop_package_matrix=@{"git" = "git"; "nvim" = "neovim-nightly"; "make" = "make"; "node" = "nodejs"; "pip" = "python3"}
|
||||
|
||||
function install_system_package($dep) {
|
||||
|
|
|
@ -197,11 +197,11 @@ function print_missing_dep_msg() {
|
|||
}
|
||||
|
||||
function check_neovim_min_version() {
|
||||
local verify_version_cmd='if !has("nvim-0.6.1") | cquit | else | quit | endif'
|
||||
local verify_version_cmd='if !has("nvim-0.7") | 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.6.1 or higher"
|
||||
echo "[ERROR]: LunarVim requires at least Neovim v0.7 or higher"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue