Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new source completion? #80

Closed
MadPocong opened this issue Aug 18, 2021 · 9 comments
Closed

Adding new source completion? #80

MadPocong opened this issue Aug 18, 2021 · 9 comments

Comments

@MadPocong
Copy link

Thanks for the great work on this plugin 馃憤

But i have question,
I use orgmode for note-taking (kristijanhusak/orgmode.nvim), in compe, I just add new line for source orgmode like this:

screenshot_18-Aug-2021_1548

how bout coq_nvim?

@Shougo
Copy link

Shougo commented Aug 18, 2021

kristijanhusak/orgmode.nvim has the source for nvim-compe.
But for coq_nvim does not.

@ms-jpq
Copy link
Owner

ms-jpq commented Aug 19, 2021

I do not have third party sources for now, I need to think deeper about how to make everything work together before I can add something like that.

@Mte90
Copy link
Contributor

Mte90 commented Sep 3, 2021

As you are thinking of it I want to share an idea.

I did for deoplete a plugin that it's here https://github.com/Mte90/deoplete-wp-hooks

Basically uses 2 json as sources but the autocomplete is executed when the cursor is inside a function for a specific parameter like add_action('autocompleteherefromthejson.

Now after moving to compe and now coq I don't have anymore something similar but for WordPress development is very useful.

As coq is very fast, I was thinking that maybe a python file (that read the json) or a json itself with instructions how to handle those "sentences" can be a way to create something that doesn't require any code.

@ms-jpq
Copy link
Owner

ms-jpq commented Sep 3, 2021

I havn't begun thinking about it haha,

still got a few things like custom snippets and what not before I worry about this.

and since its like 3 am right now my brain is basically -200 :D


also my 3AM brain thinks https://www.youtube.com/watch?v=Dz8cpq2PjlQ is a good song,

@ms-jpq
Copy link
Owner

ms-jpq commented Sep 3, 2021

honestly thought, i might try and see how hard it would be to write an LSP lmao, since that technically is a source...

@Mte90
Copy link
Contributor

Mte90 commented Sep 3, 2021

well at 3 am is hard for everyone but here is 12 am so my thoughts are not so tired 馃槀

@ms-jpq
Copy link
Owner

ms-jpq commented Sep 12, 2021

solution here #258

will code it in the next week

@ms-jpq
Copy link
Owner

ms-jpq commented Sep 14, 2021

@MadPocong

how do I test out orgmode?

:echom OrgmodeOmni(0, 'string') gives back [], what are some of the special string i need in my buffer to send back results?

@ms-jpq
Copy link
Owner

ms-jpq commented Sep 14, 2021

https://github.com/ms-jpq/coq_nvim/blob/coq/docs/CUSTOM_SOURCES.md

done,

its even faster than just using vimtex, orgmode, etc, because coq transparently adds a layer of sqlite cache

@ms-jpq ms-jpq closed this as completed Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Shougo @Mte90 @ms-jpq @MadPocong and others