Our great sponsors
-
ansible-language-server
Discontinued 🚧 Ansible Language Server codebase is now included in vscode-ansible repository
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You are conflating multiple functions. I have used the ansible language server 1 with decent success in both 0.7 and 0.8. It provides autocompletion of modules and diagnostics from ansible-lint, but does nothing to address syntax highlighting. Your project should have either an ansible.cfg or .ansible-lint at your project’s top level and your yaml files should be of filetype yaml.ansible. If you run :LspInfo it should display ansiblels as active.
For syntax highlighting, you’ll need an additional plugin such as https://github.com/pearofducks/ansible-vim. It will also automatically set the filetype if it can deduce it’s ansible.
Related posts
- LSP configuration
- How to properly set up LSP ansible language server in emacs, for proper ansible playbook editing support?
- [Ansible] Visual Studio Code et l’extension Redhat Ansible (quelqu’un peut-il le faire fonctionner) ?
- Any Ansibilists out there?
- Want ansibilists out there? GitHub - ansible/ansible-language-server: Ansible Language Server