| | | |
__| _ \ __| __| _` | __ \ _` | __| __| _` | __| _` |
| __/ | | ( | | | ( |\__ \ | ( | | ( |
\__|\___|_| _| \__,_|_.__/ \__,_|____/\__|\__,_|_| \__,_|
With lazy.nvim:
{
"olidacombe/terrabastard.nvim",
dependencies = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
},
},
You could add this to after/ftplugin/terraform.lua
:
vim.keymap.set("n", "<leader><leader>p", ":TerrabastardExtractIamPolicy<cr>", {
desc = "Extract IAM Policy",
noremap = true,
nowait = true,
silent = true,
})