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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapting YCM into a zsh completion engine? #1908

Closed
iago-lito opened this issue Jan 15, 2016 · 5 comments
Closed

Adapting YCM into a zsh completion engine? #1908

iago-lito opened this issue Jan 15, 2016 · 5 comments

Comments

@iago-lito
Copy link

It looks like some people are working on improving zsh completion definitions at zsh-users/zsh-completions. YCM ranking algorithm is just awesome and and my hands now want to use it all the time.

How difficult would it be to adapt it to zsh, so that one could proudly append zsh to the list of all YCM completion engines?

cross-reference

@vheon
Copy link
Contributor

vheon commented Jan 15, 2016

How would that work? I'm not an expert on the matter, but can you write an http client for a server in zsh that is used while you're typing in the terminal? 😕

@puremourning
Copy link
Member

I'm with @vheon I can't see a use case for YCM (a Vim plugin!) in a shell environment.

It might be possible for ycmd to provide completions in some sense, using the REST API, but it really isn't a use-case for which ycmd (designed for code completion/comprehension) was designed.

In any event, if anything is required, it lives in the ycmd repo, not YCM (the Vim plugin), so I'm going to close this. I see you've posted on the zsh repo which is where the majority of the zsh understanding lives, so best of luck over there :D

@tracyone
Copy link

tracyone commented Dec 3, 2017

I use this plugin:https://github.com/Valodim/vim-zsh-completion

press ^X^O is work well, but i didn't figure out how to autotrigger.

following setting is not working:

let g:ycm_semantic_triggers.zsh=['re!\w{2}', '/']

also see:

Valodim/vim-zsh-completion#1

@bstaletic
Copy link
Collaborator

bstaletic commented Dec 3, 2017 via email

@tracyone
Copy link

tracyone commented Dec 3, 2017

@bstaletic hi, finally, i solve this issue, please see this pull request Valodim/vim-zsh-completion#2

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants