jalvesaq / zotcite

Neovim plugin for integration with Zotero
GNU General Public License v3.0
177 stars 15 forks source link

how to set up with nvim-cmp #49

Closed thudjx closed 2 years ago

thudjx commented 2 years ago

Sorry to misuse issue to ask questions, but I couldn't find anywhere else to ask for help. I am a neovim user, and I am trying to set up a autocompletion for references from zotero database. I use nvim-cmp as the completion engine. To use this engine, a source keyword, functioning as some kind of interface, needs to be set. However, it seems that the keyword is not provided by zotcite. I have installed zotcite but the auto completion didn't occur. So I am wondering if I need to set up for the nvim-cmp first? Or maybe I haven't set up zotcite correctly?

jalvesaq commented 2 years ago

I prefer to trigger the completion manually, but if you want to try automatic completion I believe you need an engine that you can configure to do omni completion after typing the @ key plus at least two other letters. I don't know if nvim-cmp can be configured in such a way.

jalvesaq commented 2 years ago

I created a source for nvim-cmp. Please, try it: https://github.com/jalvesaq/cmp-zotcite