juliosueiras / vim-terraform-completion

A (Neo)Vim Autocompletion and linter for Terraform, a HashiCorp tool
MIT License
336 stars 24 forks source link

Doesn't work with neovim (raw / deoplete / YCM) #37

Closed davidkennedydev closed 6 years ago

davidkennedydev commented 6 years ago

Using just neovim

asciicast

This source code example is here

Using neovim + deoplete

asciicast

This source code example is here

Using YCM

asciicast

When i type to complete just 0 pop up to completion. This is on my machine.

juliosueiras commented 6 years ago

Please provide more description

juliosueiras commented 6 years ago

what is the output for :set omnifunc ?

davidkennedydev commented 6 years ago

omnifunc=terraformcomplete#Complete

davidkennedydev commented 6 years ago

So, I remove all YCM, install deoplete, install this plugin and doesn't work just seems like trying found some completion and doesn't work. I'll put my build on dockerfile to show exactly what is happening

davidkennedydev commented 6 years ago

Done, I update the description and put examples using distinct configuration with neovim.

juliosueiras commented 6 years ago

for deoplete, try adding let g:deoplete#enable_at_startup = 1 to your ~/.config/nvim/init.vim

davidkennedydev commented 6 years ago

This is already in use and doesn't work like you can see here https://github.com/DavidUser/test-vim-terraform-complete-neovim-deoplete/blob/master/.config/nvim/init.vim#L20

juliosueiras commented 6 years ago

found the issue, the fix is that fedora ruby does not come with json gem, so installing json gem will fix it

added the info on README

davidkennedydev commented 6 years ago

Perfect, it falls well!