nvim-completion-manager icon indicating copy to clipboard operation
nvim-completion-manager copied to clipboard

Compatibility with echodoc

Open sassanh opened this issue 8 years ago • 7 comments

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?

sassanh avatar May 22 '17 08:05 sassanh

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>")

jsfaint avatar Jun 28 '17 08:06 jsfaint

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

sassanh avatar Jun 28 '17 15:06 sassanh

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?

wwwdata avatar Sep 17 '17 19:09 wwwdata

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

sassanh avatar Sep 17 '17 21:09 sassanh

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

jsfaint avatar Oct 31 '17 13:10 jsfaint

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 41bc1a201f36b2b81c06d0185765a7e03886f0e3 asciicast

But fail to work in this commit 6053343b567c3ced2ac77a36a0593721499bfea0 asciicast

jsfaint avatar Nov 02 '17 14:11 jsfaint

+1. Thanks!

viniarck avatar Jan 21 '18 18:01 viniarck