Add ansible LSP
This commit is contained in:
26
nvim/lsp/ansiblels.lua
Normal file
26
nvim/lsp/ansiblels.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user