From 82bf7d3512bb7fb96c305bc5d1ea86ea9f4c5e5b Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 1 Jul 2026 08:34:29 +0200 Subject: Neovim: Installationsanweisungen für verschiedene Formater ergänzt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/plugins/format.lua | 8 ++++---- 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 { }, opts = { formatters_by_ft = { - awk = { "gawk" }, -- pkg install gawk - bash = { "shfmt" }, + awk = { "gawk" }, -- brew install gawk, pkg install gawk + bash = { "shfmt" }, -- brew install shfmt, pkg install shfmt c = {}, -- clangd cpp = {}, -- clangd - javascript = { "prettier" }, + javascript = { "prettier" }, -- (siehe "typescript") json = { "jq" }, -- brew install jq, pkg install jq 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 + xml = { "xmllint" }, -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2) xsd = { "xmllint" }, yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt }, diff --git a/zsh/zshrc b/zsh/zshrc index 53fb25a..106c0df 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -82,6 +82,11 @@ alias nvim-update='nvim --headless "+Lazy! sync" "+qa"' autoload -U compinit; compinit _comp_options+=(globdots) # With hidden files +# ... Angular CLI +if (( $+commands[ng] )); then + source <(ng completion script) +fi + zstyle ':completion:*' completer _extensions _complete _approximate zstyle ':completion:*' menu select -- cgit v1.3 From 1f4f018945b108896e3ee53dc1feaa096caaf4f7 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 1 Jul 2026 17:45:44 +0200 Subject: install.sh: strengere Skriptprüfung MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 247b204..ffe43ba 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/sh -set -e +set -eu SCRIPT_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P) -- cgit v1.3 From c4bdeffdd0716d7e7dd1f8ab3be43a60029a7052 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 1 Jul 2026 17:46:05 +0200 Subject: git: neuer Alias zum aufräumen unnötiger branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/config b/git/config index 1ea1370..c45c684 100644 --- a/git/config +++ b/git/config @@ -34,4 +34,4 @@ [alias] lg = log --color --graph --pretty=format:'%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches - + cleanup = "!git branch --merged master --format='%(refname:short)' | grep -v '^master$' | xargs -r git branch -d" -- cgit v1.3 From 4f053f3baedfa1be4cfb6fe1b0ec94fd3fbac8c2 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Thu, 2 Jul 2026 11:39:57 +0200 Subject: neovim: Anleitung zur Installation des Lua-LSP für MacOS hinzugefügt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/plugins/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 03a6be0..8ba3bc7 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -110,7 +110,7 @@ return { "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck "clangd", -- pkg install llvm "jsonls", -- npm install -g vscode-langservers-extracted - "lua_ls", -- pkg install lua-language-server + "lua_ls", -- pkg install lua-language-server, brew install lua-language-server "prismals", -- npm install -g @prisma/language-server "vtsls", -- npm install -g @vtsls/language-server }) -- cgit v1.3