From 6e5882a2fd02d30206ab9ca8aa5847b8ea09196c Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 12 Aug 2026 09:19:03 +0200 Subject: Normalize line endings --- nvim/lua/plugins/format.lua | 92 ++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'nvim/lua/plugins/format.lua') diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 8ca7f1b..102326c 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua @@ -1,46 +1,46 @@ --- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters - -local clang = {} -local gawk = { "gawk" } -- brew install gawk, pkg install gawk -local jq = { "jq" } -- brew install jq, pkg install jq -local prettier = { "prettier" } -- npm install -g prettier -local ruff = { "ruff_format" } -- brew install ruff, pkg install ruff -local shfmt = { "shfmt" } -- brew install shfmt, pkg install shfmt -local stylua = { "stylua" } -- brew install stylua, pkg install stylua -local xmllint = { "xmllint" } -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2) -local yamlfmt = { "yamlfmt" } -- brew install yamlfmt, pkg install yamlfmt - -return { - "stevearc/conform.nvim", - event = { "BufReadPre", "BufNewFile" }, - keys = { - { - "cf", - function() - require("conform").format({ async = true }) - end, - desc = "Format file", - }, - }, - opts = { - formatters_by_ft = { - awk = gawk, - bash = shfmt, - c = clang, - cpp = clang, - html = prettier, - javascript = prettier, - json = jq, - lua = stylua, - python = ruff, - sh = shfmt, - typescript = prettier, - xml = xmllint, - xsd = xmllint, - yaml = yamlfmt, - }, - default_format_opts = { - lsp_format = "fallback", - }, - }, -} +-- Verfügbare Formater: https://github.com/stevearc/conform.nvim/tree/master/lua/conform/formatters + +local clang = {} +local gawk = { "gawk" } -- brew install gawk, pkg install gawk +local jq = { "jq" } -- brew install jq, pkg install jq +local prettier = { "prettier" } -- npm install -g prettier +local ruff = { "ruff_format" } -- brew install ruff, pkg install ruff +local shfmt = { "shfmt" } -- brew install shfmt, pkg install shfmt +local stylua = { "stylua" } -- brew install stylua, pkg install stylua +local xmllint = { "xmllint" } -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2) +local yamlfmt = { "yamlfmt" } -- brew install yamlfmt, pkg install yamlfmt + +return { + "stevearc/conform.nvim", + event = { "BufReadPre", "BufNewFile" }, + keys = { + { + "cf", + function() + require("conform").format({ async = true }) + end, + desc = "Format file", + }, + }, + opts = { + formatters_by_ft = { + awk = gawk, + bash = shfmt, + c = clang, + cpp = clang, + html = prettier, + javascript = prettier, + json = jq, + lua = stylua, + python = ruff, + sh = shfmt, + typescript = prettier, + xml = xmllint, + xsd = xmllint, + yaml = yamlfmt, + }, + default_format_opts = { + lsp_format = "fallback", + }, + }, +} -- cgit v1.3