Skip to content

Commit

Permalink
feat: check if we're running 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Sep 16, 2022
1 parent b7b2e62 commit 4700af9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/settings/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ end

function M.check()
local util = require("settings.util")
if vim.fn.has("nvim-0.7.2") == 0 then
util.error("**settings.nvim** requires Neovim >= 0.7.2")
end
local ok, lsputil = pcall(require, "lspconfig.util")
if ok then
if #lsputil.available_servers() == 0 then
Expand Down

0 comments on commit 4700af9

Please sign in to comment.