aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/format.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua
index 262347f..b8b0256 100644
--- a/nvim/lua/plugins/format.lua
+++ b/nvim/lua/plugins/format.lua
@@ -15,14 +15,17 @@ return {
15 }, 15 },
16 opts = { 16 opts = {
17 formatters_by_ft = { 17 formatters_by_ft = {
18 sh = { "shfmt" }, -- brew install, pkg install shfmt
19 bash = { "shfmt" }, 18 bash = { "shfmt" },
20 python = { "ruff_format" }, -- brew install ruff, pkg install ruff 19 -- cpp = { "clang_format" },
21 lua = { "stylua" }, -- brew install stylua, pkg install stylua
22 typescript = { "prettier" }, -- npm install -g prettier
23 javascript = { "prettier" }, 20 javascript = { "prettier" },
24 json = { "jq" }, -- brew install jq, pkg install jq 21 json = { "jq" }, -- brew install jq, pkg install jq
25 -- cpp = { "clang_format" }, 22 lua = { "stylua" }, -- brew install stylua, pkg install stylua
23 python = { "ruff_format" }, -- brew install ruff, pkg install ruff
24 sh = { "shfmt" }, -- brew install, pkg install shfmt
25 typescript = { "prettier" }, -- npm install -g prettier
26 xml = { "xmllint" }, -- xmllint ist Teil von libxml2
27 xsd = { "xmllint" },
28 yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt
26 }, 29 },
27 }, 30 },
28 31