diff --git a/lua/blink/cmp/init.lua b/lua/blink/cmp/init.lua index af438735..778afce7 100644 --- a/lua/blink/cmp/init.lua +++ b/lua/blink/cmp/init.lua @@ -11,12 +11,15 @@ function cmp.setup(opts) opts = opts or {} - local version = vim.version() - if version.major == 0 and version.minor < 10 then + if vim.fn.has('nvim-0.10') == 0 then vim.notify('blink.cmp requires nvim 0.10 and newer', vim.log.levels.ERROR, { title = 'blink.cmp' }) return end + if vim.fn.has('nvim-0.11') == 1 then vim.lsp.config('*', { + capabilities = cmp.get_lsp_capabilities(), + }) end + local config = require('blink.cmp.config') config.merge_with(opts)