mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
plugins/configs/cmp: Enclose in pcall
This commit is contained in:
parent
d90747415f
commit
e800122b45
1 changed files with 6 additions and 2 deletions
|
@ -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 a new issue