Files
dotfiles/nvim/lsp/ansiblels.lua
Valeriy Filippov 59c0722f25 Add ansible LSP
2026-03-11 16:34:25 +03:00

27 lines
519 B
Lua

-- 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",
},
},
},
},
}