diff options
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/plugins/conform.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/conform.lua b/nvim/.config/nvim/lua/plugins/conform.lua index c75f458..92d896e 100644 --- a/nvim/.config/nvim/lua/plugins/conform.lua +++ b/nvim/.config/nvim/lua/plugins/conform.lua @@ -16,6 +16,7 @@ local M = { tex = { "latexindent" }, plaintex = { "latexindent" }, markdown = { "prettier", "markdownlint", "cbfmt" }, + nginx = { "nginxbeautifier" }, python = { "black" }, sass = { "prettier" }, scss = { "prettier" }, @@ -44,6 +45,20 @@ local M = { }, stdin = true, }, + nginxbeautifier = { + command = "nginxbeautifier", + args = function(ctx) + return { + vim.bo[ctx.buf].expandtab and "-s" or "-t", + vim.bo[ctx.buf].tabstop, + "-i", + "$FILENAME", + "-o", + "$FILENAME", + } + end, + stdin = false, + }, }, }, } |