ycm-core / lsp-examples

Use any language server with YouCompleteMe.
https://ycm-core.github.io/YouCompleteMe
Apache License 2.0
82 stars 26 forks source link

Add ansible lsp setup #35

Closed sc68cal closed 1 year ago

sc68cal commented 1 year ago

This change is Reviewable

sc68cal commented 1 year ago

This relies on a user setting ft=yaml.ansible to keep yaml syntax highlighting, but also trigger usage of the ansible lsp. If there is a better way to auto detect that a file is a YAML file using the Ansible DSL that would be even better, but I'd need suggestions for that

puremourning commented 1 year ago

Thanks for sending a PR, but while the snippet is useful it doesn't integrate with the existing mechanism, which is doc'd here: https://github.com/ycm-core/lsp-examples#quick-start

Typically we add a little script to help users get a working version of the server and stuff, as well as write something on the readme that we tested it and it worked.

moreover the snippet itself overwrites any other servers you might have configured, so I'm not sure it's any more useful than just a note in the readme or wiki