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

chore(doc): add that g:coc_filetype_map is required to enable #14

Closed yaegassy closed 2 years ago

yaegassy commented 2 years ago

Description

There has been a change in the behavior of coc.nvim since this commit. https://github.com/neoclide/coc.nvim/commit/54447acfe7f19daab029457cd30fe242243f47b5

It seems to have been added from a feature request. https://github.com/neoclide/coc.nvim/issues/3358

The yaml.ansible filetype has been changed to be recognized by yaml languageId.

coc-ansible is intentionally not working with yaml filetypes.


As a countermeasure to this change, we will set our own "languageId" called ansible to use it.

let g:coc_filetype_map = {
  \ 'yaml.ansible': 'ansible',
  \ }

Added g:coc_filetype_map setting to README.

Misc

As a side note, It seems that I had made it so that I could start with the languageId ansible from the beginning.