diff options
| -rw-r--r-- | nvim/lua/plugins/format.lua | 8 | ||||
| -rw-r--r-- | zsh/zshrc | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index d6942a8..31533b6 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -12,17 +12,17 @@ return { | |||
| 12 | }, | 12 | }, |
| 13 | opts = { | 13 | opts = { |
| 14 | formatters_by_ft = { | 14 | formatters_by_ft = { |
| 15 | awk = { "gawk" }, -- pkg install gawk | 15 | awk = { "gawk" }, -- brew install gawk, pkg install gawk |
| 16 | bash = { "shfmt" }, | 16 | bash = { "shfmt" }, -- brew install shfmt, pkg install shfmt |
| 17 | c = {}, -- clangd | 17 | c = {}, -- clangd |
| 18 | cpp = {}, -- clangd | 18 | cpp = {}, -- clangd |
| 19 | javascript = { "prettier" }, | 19 | javascript = { "prettier" }, -- (siehe "typescript") |
| 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 (standardmäßig installiert unter MacOS; pkg install 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 | }, |
| @@ -82,6 +82,11 @@ alias nvim-update='nvim --headless "+Lazy! sync" "+qa"' | |||
| 82 | autoload -U compinit; compinit | 82 | autoload -U compinit; compinit |
| 83 | _comp_options+=(globdots) # With hidden files | 83 | _comp_options+=(globdots) # With hidden files |
| 84 | 84 | ||
| 85 | # ... Angular CLI | ||
| 86 | if (( $+commands[ng] )); then | ||
| 87 | source <(ng completion script) | ||
| 88 | fi | ||
| 89 | |||
| 85 | zstyle ':completion:*' completer _extensions _complete _approximate | 90 | zstyle ':completion:*' completer _extensions _complete _approximate |
| 86 | 91 | ||
| 87 | zstyle ':completion:*' menu select | 92 | zstyle ':completion:*' menu select |
