From ab49b26438976fb63ad73f392bc41185d00fa8b6 Mon Sep 17 00:00:00 2001 From: Daiki Noda Date: Wed, 20 Dec 2023 15:17:45 +0900 Subject: [PATCH] chore: check version 0.8+ (#2940) As documented in README.md(after 5a871409199d585b52b69952532e3fb435e64566), nvim-lspconfig now supports version 0.8 or later. Update code to perform this version check. Co-authored-by: Daiki Noda --- plugin/lspconfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index f76d5c89f9..0a76958832 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -5,10 +5,10 @@ if vim.g.lspconfig ~= nil then end vim.g.lspconfig = 1 -if vim.fn.has 'nvim-0.7' ~= 1 then +if vim.fn.has 'nvim-0.8' ~= 1 then local version_info = vim.version() local warning_str = string.format( - '[lspconfig] requires neovim 0.7 or later. Detected neovim version: 0.%s.%s', + '[lspconfig] requires neovim 0.8 or later. Detected neovim version: 0.%s.%s', version_info.minor, version_info.patch )