From 3ae2dac658531b8ea5cc26d81660b9cc76ea48f3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 19 Jan 2025 19:50:38 +0100 Subject: [PATCH] Configuring some common formatters --- lua/plugins/conform.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 51aae05..0c1ba7e 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -31,7 +31,12 @@ return { -- Autoformat -- -- You can use a sub-list to tell conform to run *until* a formatter -- is found. + nu = { 'nufmt' }, + bash = { 'shfmt' }, + zsh = { 'shfmt' }, + rust = { "rustfmt", lsp_format = "fallback" }, javascript = { { 'prettierd', 'prettier' } }, + html = { { 'prettierd', 'prettier' } }, java = { 'clang-format' }, }, },