Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Compatibility with echodoc #76

Open
sassanh opened this issue May 22, 2017 · 7 comments
Open

Compatibility with echodoc #76

sassanh opened this issue May 22, 2017 · 7 comments

Comments

@sassanh
Copy link
Contributor

sassanh commented May 22, 2017

Currently ncm doesn't work with https://github.com/Shougo/echodoc.vim
I guess it's because the v:completed_item is not set properly so that echodoc can use it. Is it possible to make it compatible with echodoc?

@jsfaint
Copy link
Contributor

jsfaint commented Jun 28, 2017

echodoc.vim works with ncm on my side.
With this map (behavior like deoplete)

inoremap <expr><CR> (pumvisible()?(empty(v:completed_item)?"\<C-n>\<C-y>":"\<C-y>"):"\<CR>")

@sassanh
Copy link
Contributor Author

sassanh commented Jun 28, 2017

Yeah, it's working now for me too. I close this issue.

@sassanh sassanh closed this as completed Jun 28, 2017
@wwwdata
Copy link

wwwdata commented Sep 17, 2017

Hm, got the same problem here as well. It works flawlessly for completion in go files but not within javascript files with the tern and flow plugins. Anybody has echodoc working for that as well?

@sassanh
Copy link
Contributor Author

sassanh commented Sep 17, 2017

it works for console.log() but it doesn't work for PropTypes.any() for example (From react prop-types).

@jsfaint
Copy link
Contributor

jsfaint commented Oct 31, 2017

echodoc fail to work with recently ncm on my side.
Does anyone meet the same issue?

@jsfaint
Copy link
Contributor

jsfaint commented Nov 2, 2017

echodoc.vim work with press <c-n> and <c-y> manually, but fail to work with the setting below in current version of ncm.

inoremap <expr><CR> (pumvisible()?(empty(v:completed_item)?"\<C-n>\<C-y>":"\<C-y>"):"\<CR>")

I use git bisect to track the issue
The setting still works in this commit 41bc1a2
asciicast

But fail to work in this commit 6053343
asciicast

@roxma roxma reopened this Nov 2, 2017
@viniarck
Copy link

+1. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants