Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

Unknown function: deoplete#custom#option #1188

Closed pplmx closed 3 years ago

pplmx commented 3 years ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

Running vim will throw an error. From the other issues, it seems that the deoplete didn't be loaded. But, I don't know where it should be loaded. Could you give me some help? Thanks a lot. :)

[root@cf8e34ccda9c src]# vim
Error detected while processing /root/.vimrc:
line  879:
E117: Unknown function: deoplete#custom#option
Press ENTER or type command to continue

Expected

Without Error.

Environment Information

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

This is my .vimrc, the error occurs in Line 879 https://github.com/pplmx/vimConfig/blob/dev/.vimrc

Screenshot (if possible)

image

Shougo commented 3 years ago

From my esp skills...

I think spf13-vim does not support deoplete. I have not found it.

Why you can use deoplete by spf13-vim? Please explain it for me.

https://github.com/spf13/spf13-vim/search?q=deoplete+is%3Aissue&type=issues

How are you install deoplete?

I think the forked spf13-vim supports deoplete instead. https://github.com/jtuz/spf13-vim https://github.com/jtuz/spf13-vim#deoplete

You can ask in the issues if it does not work.

pplmx commented 3 years ago

Hi, Shougo

I also forked spf13-vim and refactor it to use vim-plug to manage the plugins. :)

Shougo commented 3 years ago

I don't know your forked spf13-vim code. I have not ESP skills unfortunately.

Shougo commented 3 years ago

If you use vim-plug, deoplete#custom#option() must be called after call plug#end().

uolot commented 3 years ago

For the record, because I had the same issue, the following also needs to be called after call plug#end():

let g:deoplete#enable_at_startup = 1