aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/ansiblels.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/ansiblels.lua')
-rw-r--r--lsp/ansiblels.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/lsp/ansiblels.lua b/lsp/ansiblels.lua
new file mode 100644
index 00000000..bd98f8fe
--- /dev/null
+++ b/lsp/ansiblels.lua
@@ -0,0 +1,36 @@
+---@brief
+---
+---https://github.com/ansible/vscode-ansible
+--
+-- Language server for the ansible configuration management tool.
+--
+-- `ansible-language-server` can be installed via `npm`:
+--
+-- ```sh
+-- npm install -g @ansible/ansible-language-server
+-- ```
+return {
+ cmd = { 'ansible-language-server', '--stdio' },
+ settings = {
+ ansible = {
+ python = {
+ interpreterPath = 'python',
+ },
+ ansible = {
+ path = 'ansible',
+ },
+ executionEnvironment = {
+ enabled = false,
+ },
+ validation = {
+ enabled = true,
+ lint = {
+ enabled = true,
+ path = 'ansible-lint',
+ },
+ },
+ },
+ },
+ filetypes = { 'yaml.ansible' },
+ root_markers = { 'ansible.cfg', '.ansible-lint' },
+}