juliosueiras / vim-terraform-completion

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

Not working completion neovim deoplete. #49

Closed nagaho closed 5 years ago

nagaho commented 5 years ago

Not working completion neovim deoplete. (other deoplete is working.) What's wrong?

$ nvim test.tf

c-x c-o
Omni completion (^O^N^P) Pattern not found

:se omnifunc
omnifunc=terraformcomplete#Complete

:se ft
filetype=terraform

:checkhealth
...
## Ruby provider (optional)

- INFO: Ruby: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
- INFO: Host: /usr/local/bin/neovim-ruby-host
- OK: Latest "neovim" gem is installed: 0.7.1
..

:ver
NVIM v0.3.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GEN
ERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20180721-54778-hhac4o/neovim-0.3.1/build/config -I/tmp/neovim-20180721-54778-hhac4o/neovim-0.3.1/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20180721-54778-hhac4o/neovim-0.3.1
/build/src/nvim/auto -I/tmp/neovim-20180721-54778-hhac4o/neovim-0.3.1/build/include
Compiled by brew@Sierra-2.local
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.3.1/share/nvim"

[[plugins]] repo = 'hashivim/vim-terraform' on_ft = ['terraform'] hook_add = ''' let g:terraform_fmt_on_save = 1 '''

[[plugins]] repo = 'juliosueiras/vim-terraform-completion' on_ft = 'terraform' depends_on = ['deoplete.nvim', 'vim-terraform'] hook_add = ''' let g:deoplete#omni_patterns = {} let g:deoplete#omni_patterns.terraform = '[^ *\t"{=$]\w*' ''' hook_post_source = ''' call deoplete#initialize() '''

esn89 commented 5 years ago

+ 1

I am unable to get this with neovim as well. I have the neovim and the json gems for this as well.

juliosueiras commented 5 years ago

can you guys try it again with the new instruction from README?

nagaho commented 5 years ago

@juliosueiras It works. Thank you!

esn89 commented 5 years ago

btw if i just want autocomplete, is syntastic required?

juliosueiras commented 5 years ago

no