27 lines
519 B
Lua
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",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|