Skip to content

Commit

Permalink
feat(lang): add ansible support (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-kozlowicz authored Mar 7, 2024
1 parent e7a58d9 commit b7da44c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lua/lazyvim/plugins/extras/lang/ansible.lua
Original file line number Diff line number Diff line change
@@ -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,
},
},
}

0 comments on commit b7da44c

Please sign in to comment.