diff options
Diffstat (limited to 'nvim/lua/plugins/format.lua')
| -rw-r--r-- | nvim/lua/plugins/format.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 476e513..a8d63b8 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | -- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters | 1 | -- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters |
| 2 | 2 | ||
| 3 | local clang = {} | 3 | local clang = {} -- absichtlich leer: c und cpp formatiert clangd, siehe default_format_opts.lsp_format |
| 4 | local djlint = { "djlint" } -- pipx install djlint (macOS & FreeBSD); unter Windows kein winget-Paket, siehe neovim-windows-setup.md | 4 | local djlint = { "djlint" } -- pipx install djlint (macOS & FreeBSD); unter Windows kein winget-Paket, siehe neovim-windows-setup.md |
| 5 | local gawk = { "gawk" } -- brew install gawk, pkg install gawk | 5 | local gawk = { "gawk" } -- brew install gawk, pkg install gawk |
| 6 | local jq = { "jq" } -- brew install jq, pkg install jq | 6 | local jq = { "jq" } -- brew install jq, pkg install jq |
| @@ -27,7 +27,6 @@ return { | |||
| 27 | opts = { | 27 | opts = { |
| 28 | formatters_by_ft = { | 28 | formatters_by_ft = { |
| 29 | awk = gawk, | 29 | awk = gawk, |
| 30 | bash = shfmt, | ||
| 31 | c = clang, | 30 | c = clang, |
| 32 | cpp = clang, | 31 | cpp = clang, |
| 33 | html = prettier, | 32 | html = prettier, |
| @@ -46,7 +45,7 @@ return { | |||
| 46 | formatters = { | 45 | formatters = { |
| 47 | prettier_jsonc = { | 46 | prettier_jsonc = { |
| 48 | inherit = "prettier", | 47 | inherit = "prettier", |
| 49 | prepend_args = { "--parser", "jsonc" }, | 48 | prepend_args = { "--parser", "jsonc", "--trailing-comma", "none" }, |
| 50 | }, | 49 | }, |
| 51 | }, | 50 | }, |
| 52 | default_format_opts = { | 51 | default_format_opts = { |
