Skip to content

Commit

Permalink
[prancible] add zed editor (#5691)
Browse files Browse the repository at this point in the history
* add zed text editor language server settings

make use of the ansible language lsp and file detection

* the ansible lint extension config

this requires install the Zed ansible lint extension. The config will override local settings of your zed editor
  • Loading branch information
kayiwa authored Jan 8, 2025
1 parent fc0f9ce commit 0367385
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"file_types": {
"Ansible": [
"**.ansible.yml",
"**.ansible.yaml",
"**/defaults/*.yml",
"**/defaults/*.yaml",
"**/meta/*.yml",
"**/meta/*.yaml",
"**/tasks/*.yml",
"**/tasks/*.yaml",
"**/handlers/*.yml",
"**/handlers/*.yaml",
"**/group_vars/*.yml",
"**/group_vars/*.yaml",
"**/playbooks/*.yaml",
"**/playbooks/*.yml",
"**playbook*.yaml",
"**playbook*.yml"
]
},
"lsp": {
// Note, the Zed Ansible extension prefixes all settings with `ansible`
// so instead of using `ansible.ansible.path` use `ansible.path`.
"ansible-language-server": {
"settings": {
"ansible": {
"path": "ansible"
},
"executionEnvironment": {
"enabled": false
},
"python": {
"interpreterPath": "python3"
},
"validation": {
"enabled": true,
// To enable linting, manually install ansible-lint and make sure it is your PATH
"lint": {
"enabled": true,
"path": "ansible-lint"
}
}
}
}
}

}

0 comments on commit 0367385

Please sign in to comment.