✨ feat(nvim): add autodetection of ansible files
This commit is contained in:
parent
21e3937930
commit
99324ae4b4
1 changed files with 12 additions and 0 deletions
|
@ -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 = {},
|
||||
|
|
Loading…
Add table
Reference in a new issue