diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-06-05 09:54:03 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-06-05 09:54:03 +0200 |
| commit | d10379f2edf3626191a43227dd5fd90a62d9b978 (patch) | |
| tree | f04345d25e9e08c08204692c235202ece16e9470 /nvim/lua/plugins/format.lua | |
| parent | 011f3e8f670db9fa5e4edfb10db302ac9833eeb9 (diff) | |
| download | dotfiles-d10379f2edf3626191a43227dd5fd90a62d9b978.tar.gz dotfiles-d10379f2edf3626191a43227dd5fd90a62d9b978.tar.bz2 dotfiles-d10379f2edf3626191a43227dd5fd90a62d9b978.zip | |
Neovim: Formatiere alles mit "stylua `find . -name '*.lua'`"
Diffstat (limited to 'nvim/lua/plugins/format.lua')
| -rw-r--r-- | nvim/lua/plugins/format.lua | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index 3d6d5b0..9334465 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -12,19 +12,19 @@ return { | |||
| 12 | }, | 12 | }, |
| 13 | opts = { | 13 | opts = { |
| 14 | formatters_by_ft = { | 14 | formatters_by_ft = { |
| 15 | awk = { "gawk" }, -- pkg install gawk | 15 | awk = { "gawk" }, -- pkg install gawk |
| 16 | bash = { "shfmt" }, | 16 | bash = { "shfmt" }, |
| 17 | c = {}, -- clangd | 17 | c = {}, -- clangd |
| 18 | cpp = {}, -- clangd | 18 | cpp = {}, -- clangd |
| 19 | javascript = { "prettier" }, | 19 | javascript = { "prettier" }, |
| 20 | json = { "jq" }, -- brew install jq, pkg install jq | 20 | json = { "jq" }, -- brew install jq, pkg install jq |
| 21 | lua = { "stylua" }, -- brew install stylua, pkg install stylua | 21 | lua = { "stylua" }, -- brew install stylua, pkg install stylua |
| 22 | python = { "ruff_format" }, -- brew install ruff, pkg install ruff | 22 | python = { "ruff_format" }, -- brew install ruff, pkg install ruff |
| 23 | sh = { "shfmt" }, -- brew install, pkg install shfmt | 23 | sh = { "shfmt" }, -- brew install, pkg install shfmt |
| 24 | typescript = { "prettier" }, -- npm install -g prettier | 24 | typescript = { "prettier" }, -- npm install -g prettier |
| 25 | xml = { "xmllint" }, -- xmllint ist Teil von libxml2 | 25 | xml = { "xmllint" }, -- xmllint ist Teil von libxml2 |
| 26 | xsd = { "xmllint" }, | 26 | xsd = { "xmllint" }, |
| 27 | yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt | 27 | yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt |
| 28 | }, | 28 | }, |
| 29 | default_format_opts = { | 29 | default_format_opts = { |
| 30 | lsp_format = "fallback", | 30 | lsp_format = "fallback", |
