Skip to content

Commit

Permalink
feat: ensure nvim 0.10+ on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 20, 2024
1 parent 07665c3 commit 30a4a52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/blink/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ local cmp = {}
--- @param opts? blink.cmp.Config
function cmp.setup(opts)
opts = opts or {}

local version = vim.version()
if version.major == 0 and version.minor < 10 then
vim.notify('blink.cmp only supports nvim 0.10 and newer', vim.log.levels.ERROR)
return
end

local config = require('blink.cmp.config')
config.merge_with(opts)

Expand Down

0 comments on commit 30a4a52

Please sign in to comment.