ms-jpq / coq_nvim

Fast as FUCK nvim completion. SQLite, concurrent scheduler, hundreds of hours of optimization.
GNU General Public License v3.0
3.52k stars 97 forks source link

['cmp' Module] The 'cmp' lua module in coq will confuse some plugins #387

Open hiberabyss opened 2 years ago

hiberabyss commented 2 years ago

Since cmp is the module name of nvim-cmp, some plugins will think nvim-cmp is installed once coq installed. This will cause some error messages.

garyhurtz commented 2 years ago

I ran into this last week. In my case, orgmode.nvim choked after installing coq.thirdparty.

I found that coq.thirdparty's "lua/cmp" module was clashing with orgmode's check to see if cmp is installed:

From orgmode.nvim:

local has_cmp, cmp = pcall(require, 'cmp')
if not has_cmp then
  return
end

I forked coq.thirdparty and prefixed the references to cmp and deoplete, which has resolved the issue. I just added a PR to coq.thirdparty with my solution, in case it helps.