Closed phongnh closed 7 months ago
My Vim automatically sets omnifunc for Gemfile to rubycomplete#Complete
. Maybe try unsetting it in your .vimrc and let Vim set it.
Also, I cannot reproduce the problem with syntaxcomplete#Complete
Disable Lsp.
My Vim automatically sets omnifunc for Gemfile to
rubycomplete#Complete
. Maybe try unsetting it in your .vimrc and let Vim set it.Also, I cannot reproduce the problem with
syntaxcomplete#Complete
Disable Lsp.
Tried to set its omnifunc to rubycomplete#Complete
, it works fine. I did not use Lsp by the way. Thanks.
It seems that syntaxcomplete#Complete
also does not work with other completion plugins. Previously, I tried to set this in my vimrc
" after/ftplugin/ruby.vim
if exists('&omnifunc') && &omnifunc ==# 'syntaxcomplete#Complete'
setlocal omnifunc=
endif
I removed it recently :). Just added it back just in case.
Thanks for your support.
Hi,
I just found that there is an issue when using
omnifunc
complete withsyntaxcomplete#Complete
. When opening Gemfile in Rails project, somehow this file'somnifunc
is set tosyntaxcomplete#Complete
.When typing
gem "
, everytime I type"
I got this error:Tried to check the source code, it looks the it is failed at
autoload/vimcomplete/omnifunc.vim:44
, but I don't know how to fix that.Could you please help to fix this issue? Thanks.