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
1 changed files with 6 additions and 2 deletions

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
cmp.setup {