plugins/configs/cmp: Enclose in pcall

This commit is contained in:
Akianonymus 2021-08-27 15:32:33 +05:30 committed by siduck76
parent d90747415f
commit e800122b45

View File

@ -1,6 +1,10 @@
vim.opt.completeopt = "menuone,noselect" local present, cmp = pcall(require, "cmp")
local cmp = require "cmp" if not present then
return
end
vim.opt.completeopt = "menuone,noselect"
-- nvim-cmp setup -- nvim-cmp setup
cmp.setup { cmp.setup {