dotfiles/.config/nvim/lua/plugins/extras/lang/ansible.lua
Sergio Laín e457722492
📁 files(nvim): changes to the directories and extras
another bug change to the structure of the nvim config. probably, tomorrow will be finished
2023-10-25 12:38:42 +02:00

46 lines
928 B
Lua

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", "ansible-language-server" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
ansiblels = {},
},
},
},
{
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
ansible = { "ansible-lint" },
},
},
},
{
"mfussenegger/nvim-ansible",
keys = {
{
"<leader>tp",
function()
require("ansible").run()
end,
desc = "Run Ansible Playbooks",
},
},
},
}