diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-04-16 17:36:55 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-04-16 17:36:55 +0200 |
| commit | e91cb074515097099aab15712656d3fd78559559 (patch) | |
| tree | e69dbf548c145127d64cfb5fc5e836e9013013a6 | |
| parent | 122d137241eee0a8915646915d853c99c365121c (diff) | |
| download | dotfiles-e91cb074515097099aab15712656d3fd78559559.tar.gz dotfiles-e91cb074515097099aab15712656d3fd78559559.tar.bz2 dotfiles-e91cb074515097099aab15712656d3fd78559559.zip | |
Neovim: Formatter für XML und YAML hinzugefügt
| -rw-r--r-- | nvim/lua/plugins/format.lua | 13 |
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 | ||
