feat(lang): add ansible support

This commit is contained in:
Jakub Kozłowicz 2023-07-25 21:59:53 +02:00 committed by Jakub Kozlowicz
parent aa1cccf230
commit 1c1c319560
No known key found for this signature in database

View file

@ -0,0 +1,36 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "yaml" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
-- for ansiblels validation
vim.list_extend(opts.ensure_installed, { "ansible-lint" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
ansiblels = {},
},
},
},
{
"mfussenegger/nvim-ansible",
keys = {
"<leader>tr",
function()
require("ansible").run()
end,
silent = true,
},
},
}