feat: switch to native 0.11 LSP, remove obsolete things
This commit is contained in:
parent
23fe78acec
commit
e2d27c98c1
24 changed files with 311 additions and 475 deletions
28
lsp/ansible.lua
Normal file
28
lsp/ansible.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---@type vim.lsp.Config
|
||||
--- https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/configs/ansiblels.lua
|
||||
--- https://github.com/neovim/nvim-lspconfig/pull/3659/files#diff-5ecad9b03732db4dfd97f3aa9874fa465b88ee4e121bf152e670f46e4f19cc6e
|
||||
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" },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue