From b7da44caaed0bf7da0fd81d56f00428ff8df59d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owicz?= Date: Thu, 7 Mar 2024 11:46:33 +0100 Subject: [PATCH] feat(lang): add ansible support (#1218) --- lua/lazyvim/plugins/extras/lang/ansible.lua | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/ansible.lua diff --git a/lua/lazyvim/plugins/extras/lang/ansible.lua b/lua/lazyvim/plugins/extras/lang/ansible.lua new file mode 100644 index 00000000..e952a301 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/ansible.lua @@ -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 = { + "tr", + function() + require("ansible").run() + end, + silent = true, + }, + }, +}