Add ansible LSP

This commit is contained in:
Valeriy Filippov
2026-03-11 16:34:25 +03:00
parent bfffd20873
commit 59c0722f25
4 changed files with 36 additions and 0 deletions

26
nvim/lsp/ansiblels.lua Normal file
View File

@@ -0,0 +1,26 @@
-- https://github.com/neovim/nvim-lspconfig/blob/master/lsp/ansiblels.lua
return {
cmd = { "ansible-language-server", "--stdio" },
filetypes = { "yaml.ansible" },
root_markers = { "ansible.cfg", ".ansible-lint" },
settings = {
ansible = {
python = {
interpreterPath = "python",
},
ansible = {
path = "ansible",
},
executionEnvironment = {
enabled = false,
},
validation = {
enabled = true,
lint = {
enabled = true,
path = "ansible-lint",
},
},
},
},
}