plugins/configs/cmp: Enclose in pcall
This commit is contained in:
parent
d90747415f
commit
e800122b45
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user