From e91cb074515097099aab15712656d3fd78559559 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Thu, 16 Apr 2026 17:36:55 +0200 Subject: Neovim: Formatter für XML und YAML hinzugefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/plugins/format.lua | 13 ++++++++----- 1 file 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 { }, opts = { formatters_by_ft = { - sh = { "shfmt" }, -- brew install, pkg install shfmt bash = { "shfmt" }, - python = { "ruff_format" }, -- brew install ruff, pkg install ruff - lua = { "stylua" }, -- brew install stylua, pkg install stylua - typescript = { "prettier" }, -- npm install -g prettier + -- cpp = { "clang_format" }, javascript = { "prettier" }, json = { "jq" }, -- brew install jq, pkg install jq - -- cpp = { "clang_format" }, + lua = { "stylua" }, -- brew install stylua, pkg install stylua + python = { "ruff_format" }, -- brew install ruff, pkg install ruff + sh = { "shfmt" }, -- brew install, pkg install shfmt + typescript = { "prettier" }, -- npm install -g prettier + xml = { "xmllint" }, -- xmllint ist Teil von libxml2 + xsd = { "xmllint" }, + yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt }, }, -- cgit v1.3