feat(neovim): Formatting for xml & linting for dockerfile, terraform,

yaml

- xml formatting with `xmllint`
- Security linting with `trivy` for dockerfile, terraform & yaml
This commit is contained in:
Pratik Tripathy
2025-10-13 19:33:24 +05:30
parent f3814850ba
commit 31659e55eb
2 changed files with 7 additions and 5 deletions

View File

@@ -5,24 +5,25 @@ return {
event = { "BufWritePre" },
opts = {
formatters_by_ft = {
sh = { "shfmt" },
bash = { "shfmt" },
sh = { "shfmt" },
zsh = { "shfmt" },
graphql = { "prettierd" },
css = { "prettierd" },
graphql = { "prettierd" },
html = { "prettierd" },
javascript = { "prettierd" },
javascriptreact = { "prettierd" },
json = { "prettierd" },
svelte = { "prettierd" },
typescript = { "prettierd" },
typescriptreact = { "prettierd" },
json = { "prettierd" },
lua = { "stylua" },
markdown = { "markdownlint" },
python = { "black" },
rust = { "rustfmt" },
xml = { "xmllint" },
yaml = { "yamlfmt" },
["_"] = { "trim_whitespace" },