Closed lanox closed 4 years ago
I think you might have the same issue as https://github.com/juliosueiras/vim-terraform-completion/issues/49
I still can't get this to work. I have followed the issues #49, but no luck.
Well got it further but, i get Omni completion (^O^N^P) Pattern not found
and neither instructions fro deoplete worked for me.
@juliosueiras any help would be appreciated.
Here's a log with some exceptions that seem relevant to this issue, when I try omnicomplete after typing resource "
updated the repo due to dein.vim load ftplugin very differently from others(dein.vim apparently collect ftplugin and overwrite them)
so pull the newest update of the repo and follow this
Neovim version: 0.3.1
Hi @juliosueiras I don't understand, in you video you have the same issue all the way to end ? I am not sure what I am looking at or what to follow. ? I am grateful that you spend time to write this plugin and to support it, but I think your approach on helping people using this plugin is quiet poor.
wait, are you sure?, since the video show completion working
On Fri, Oct 12, 2018 at 1:20 AM lanox notifications@github.com wrote:
Hi @juliosueiras https://github.com/juliosueiras I don't understand, in you video you have the same issue all the way to end ? I am not sure what I am looking at or what to follow. ? I am grateful that you spend time to write this plugin and to support it, but I think your approach on helping people using this plugin is quiet poor.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/juliosueiras/vim-terraform-completion/issues/50#issuecomment-429207496, or mute the thread https://github.com/notifications/unsubscribe-auth/ADgoLig3ET2uDg2kbe89X733Cq3pGs1fks5ukCa2gaJpZM4Wmxy2 .
Yes, sorry my bad, it shows it’s working, but it is not working for me, I still get the error I mentioned above.
I have followed readme and did exactly as it states, with out any luck.
I am not exactly sure what I am following in that video.
Just double checking everything
A) what neovim version are you using?
B) what is your plugin manager?
C) you have json gem installed? (or can use require "json"
in ruby
A) what neovim version are you using? NVIM v0.3.1 B) what is your plugin manager? Plug C) you have json gem installed? (or can use require "json" in ruby gem list shows
json (default: 2.1.0) also check health shows
## Ruby provider (optional)
- INFO: Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
- INFO: Host: /usr/local/bin/neovim-ruby-host
- OK: Latest "neovim" gem is installed: 0.7.1
can you double check this https://asciinema.org/a/CZH4fT2u1IIRUcn3wcFZVWnzk and see if I am using the same config as you? (Neovim 0.3.1, same ruby neovim gem version, and json 2.1.0)
@juliosueiras I have no idea why this is not working for me, I copied your config from asciiname video and created new init.conf.
This is what I have now in my init.conf and it's still not working. Also I am running macos, with homebrew I dunno if that has anything to do with.
if &compatible
set nocompatible
endif
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.config/nvim/plugged')
Plug 'hashivim/vim-terraform'
Plug 'juliosueiras/vim-terraform-completion'
Plug 'w0rp/ale'
Plug 'Shougo/deoplete.nvim'
call plug#end()
filetype plugin indent on
syntax enable
" (Optional)Remove Info(Preview) window
set completeopt-=preview
" (Optional)Hide Info(Preview) window after completions
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
" (Optional) Enable terraform plan to be include in filter
let g:syntastic_terraform_tffilter_plan = 1
" (Optional) Default: 0, enable(1)/disable(0) plugin's keymapping
let g:terraform_completion_keys = 1
" (Optional) Default: 1, enable(1)/disable(0) terraform module registry completion
let g:terraform_registry_module_completion = 0
let g:deoplete#omni_patterns = {}
call deoplete#custom#option('omni_patterns', {
\ 'complete_method': 'omnifunc',
\ 'terraform': '[^ *\t"{=$]\w*',
\})
call deoplete#initialize()
In the same situation, very similar setup to @lanox
syntax & formatting works great, but autocompletion is a no show. use w0rp/ale too - understand that means no linting options?
With <c-x><c-o>
to initiate omnicomplete, I receive E117: Unknown function: terraformcomplete#Complete
Well, after quite a bit of digging around, I got everything working great for autocompletion, and ctags / tagbar support too.
In my situation, the problem was related to my path entries being a mess in .zshrc
. At some point, a path_helper
entry was added which meant my environment was picking up system/brew version of ruby and not the intended rbenv global env where I had installed neovim gem etc. Sorting out the $PATH issue, and getting the correct ordering resolved this problem.
Environment is: MacOs Mojave, Neovim 0.3.4, with iTerm & Tmux in case it assists others. Very similar plugins setup to the OP.
May try installing neomake to get linting working... Thanks to all the maintainers for providing this excellent Plugin. Appreciated.
I had a similar problem. To fix it I had to install neovim gem and make sure that ruby and json were installed:
brew install ruby
gem install json neovim
Hi,
I cant seem to get this working with neovim,
I have installed the following plugins,
this is my CheckHealth output
also have this set in init.vim
any ideas on why autocompletion doesn't work ?
thanks