From cd694b8944eb1ae98f1d0e01cf837e66b15c2857 Mon Sep 17 00:00:00 2001 From: hrsh7th <> Date: Mon, 16 May 2022 12:08:13 +0900 Subject: [PATCH] Fix #989 --- plugin/cmp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/cmp.lua b/plugin/cmp.lua index 1f0bdfe..caf8c27 100644 --- a/plugin/cmp.lua +++ b/plugin/cmp.lua @@ -3,6 +3,10 @@ if vim.g.loaded_cmp then end vim.g.loaded_cmp = true +if not vim.api.nvim_create_autocmd then + return print('[nvim-cmp] Your nvim does not has `nvim_create_autocmd` function. Please update to latest nvim.') +end + local api = require('cmp.utils.api') local types = require('cmp.types') local highlight = require('cmp.utils.highlight')