Skip to content

Commit

Permalink
chore: check version 0.8+ (#2940)
Browse files Browse the repository at this point in the history
As documented in README.md(after 5a87140),
nvim-lspconfig now supports version 0.8 or later.
Update code to perform this version check.

Co-authored-by: Daiki Noda <[email protected]>
  • Loading branch information
sys9kdr and Daiki Noda authored Dec 20, 2023
1 parent e85816c commit ab49b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit ab49b26

Please sign in to comment.