jlc / envim

The ensime for vim
54 stars 3 forks source link

omni complete definitions not loaded #4

Closed megaannum closed 12 years ago

megaannum commented 12 years ago

After starting envim, omnicomplete does not work. If I manually enter: :set omnifunc=envim#Completions :set completeopt=menuone,preview then omnicomplete works.

megaannum commented 12 years ago

if the following is placed in the ftplugin/scala.vim file echo("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") the XXX... is not printed out to the vim cmd line (that I can see).

jlc commented 12 years ago

This issue appeared because Vim does not recognize the filetype of scala files, and then doesn't load the corresponding filetype plugin (envim/ftplugin/scala.vim).

It is now fixed in branch master by adding ftdetect/scala.vim.

A complementary option is to use vim-scala-behaghel (https://github.com/behaghel/vim-scala) which also provide scala syntax highlighting.

Thanks for reporting it!