mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
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:
@@ -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" },
|
||||
|
||||
@@ -10,8 +10,9 @@ return {
|
||||
lint.linters_by_ft = {
|
||||
python = { "pylint" },
|
||||
markdown = { "markdownlint" },
|
||||
yaml = { "yamllint" },
|
||||
dockerfile = { "hadolint" },
|
||||
yaml = { "yamllint", "trivy" },
|
||||
dockerfile = { "hadolint", "trivy" },
|
||||
terraform = { "trivy" },
|
||||
|
||||
["*"] = { "codespell" },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user