feat(nvim): add autodetection of ansible files

This commit is contained in:
Sergio Laín 2024-02-27 09:53:28 +01:00
parent 21e3937930
commit 99324ae4b4
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -9,6 +9,18 @@ return {
},
{
"neovim/nvim-lspconfig",
init = function()
vim.filetype.add({
pattern = {
[".*/playbooks/.*%.yaml"] = "yaml.ansible",
[".*/playbooks/.*%.yml"] = "yaml.ansible",
[".*/roles/.*/tasks/.*%.yaml"] = "yaml.ansible",
[".*/roles/.*/tasks/.*%.yml"] = "yaml.ansible",
[".*/roles/.*/handlers/.*%.yaml"] = "yaml.ansible",
[".*/roles/.*/handlers/.*%.yml"] = "yaml.ansible",
},
})
end,
opts = {
servers = {
ansiblels = {},