dotfiles/.config/nvim/lua/plugins/extras/lang/ansible-extended.lua
Sergio Laín 603fa0260a
🗑️ remove(nvim): ansible plugin from the ansible extra
already declared in the lazyvim extra
2024-04-01 13:46:04 +02:00

41 lines
1 KiB
Lua

return {
{ import = "plugins.extras.lang.yaml-extended" },
{ import = "lazyvim.plugins.extras.lang.ansible" },
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ansible-language-server" })
end,
},
{
"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,
},
{
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
ansible = { "ansible-lint" },
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
ensure_installed = {
"ansible",
},
},
}