yaegassy / coc-ansible

ansible-language-server extension for coc.nvim
https://www.npmjs.com/package/@yaegassy/coc-ansible
MIT License
71 stars 3 forks source link

Issue of getting it to work. #30

Closed sojjan1337 closed 1 year ago

sojjan1337 commented 1 year ago

Hi!

Using neovim and i tried with ":CocInstall @yaegassy/coc-ansible" and also by adding the plugin and install it. But when i edit a .yaml or .yml i can't get the auto-completion to work.

Also added the let g: code into my init.vim, and using "Plug 'https://github.com/neoclide/coc.nvim"

i have ansible/lint/yamllint installed

Is there a good way to troubleshot this?

Thanks!

yaegassy commented 1 year ago

Is filetype set to yaml.ansible? :set filetype? to check filetype.

Also review the following README sections.

yaegassy commented 1 year ago

For the installation of "coc.nvim" itself, check the following. An example is given for the case where the package manager is vim-plug.

Plug 'neoclide/coc.nvim', {'branch': 'release'}
sojjan1337 commented 1 year ago

Works now when i :set filetype=yaml.ansible

But i thought that init.vim would set this by the let g: code?

Thanks! :)

yaegassy commented 1 year ago

Also check the README for ansible-vim if necessary. https://github.com/pearofducks/ansible-vim#readme

sojjan1337 commented 1 year ago

au BufNewFile,BufRead .yaml :setl ft=yaml.ansible au BufNewFile,BufRead .yml :setl ft=yaml.ansible