diff options
| -rw-r--r-- | git/config | 2 | ||||
| -rwxr-xr-x | install.sh | 2 | ||||
| -rw-r--r-- | nvim/lua/plugins/format.lua | 10 | ||||
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 7 | ||||
| -rw-r--r-- | zsh/zshrc | 5 |
5 files changed, 18 insertions, 8 deletions
| @@ -34,4 +34,4 @@ | |||
| 34 | 34 | ||
| 35 | [alias] | 35 | [alias] |
| 36 | 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 | 36 | 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 |
| 37 | 37 | cleanup = "!git branch --merged master --format='%(refname:short)' | grep -v '^master$' | xargs -r git branch -d" | |
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | set -e | 3 | set -eu |
| 4 | 4 | ||
| 5 | SCRIPT_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | 5 | SCRIPT_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P) |
| 6 | 6 | ||
diff --git a/nvim/lua/plugins/format.lua b/nvim/lua/plugins/format.lua index f79f577..f80ee2d 100644 --- a/nvim/lua/plugins/format.lua +++ b/nvim/lua/plugins/format.lua | |||
| @@ -12,18 +12,18 @@ 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 | html = { "prettier" }, -- npm install -g prettier | 19 | html = { "prettier" }, -- (siehe "typescript") |
| 20 | javascript = { "prettier" }, | 20 | javascript = { "prettier" }, -- (siehe "typescript") |
| 21 | json = { "jq" }, -- brew install jq, pkg install jq | 21 | json = { "jq" }, -- brew install jq, pkg install jq |
| 22 | lua = { "stylua" }, -- brew install stylua, pkg install stylua | 22 | lua = { "stylua" }, -- brew install stylua, pkg install stylua |
| 23 | python = { "ruff_format" }, -- brew install ruff, pkg install ruff | 23 | python = { "ruff_format" }, -- brew install ruff, pkg install ruff |
| 24 | sh = { "shfmt" }, -- brew install, pkg install shfmt | 24 | sh = { "shfmt" }, -- brew install, pkg install shfmt |
| 25 | typescript = { "prettier" }, -- npm install -g prettier | 25 | typescript = { "prettier" }, -- npm install -g prettier |
| 26 | xml = { "xmllint" }, -- xmllint ist Teil von libxml2 | 26 | xml = { "xmllint" }, -- xmllint ist Teil von libxml2 (standardmäßig installiert unter MacOS; pkg install libxml2) |
| 27 | xsd = { "xmllint" }, | 27 | xsd = { "xmllint" }, |
| 28 | yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt | 28 | yaml = { "yamlfmt" }, -- brew install yamlfmt, pkg install yamlfmt |
| 29 | }, | 29 | }, |
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 03a6be0..b301b68 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua | |||
| @@ -60,6 +60,10 @@ return { | |||
| 60 | capabilities = capabilities, | 60 | capabilities = capabilities, |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | vim.lsp.config.html = { | ||
| 64 | capabilities = capabilities, | ||
| 65 | } | ||
| 66 | |||
| 63 | vim.lsp.config.vtsls = { | 67 | vim.lsp.config.vtsls = { |
| 64 | capabilities = capabilities, | 68 | capabilities = capabilities, |
| 65 | settings = { | 69 | settings = { |
| @@ -109,8 +113,9 @@ return { | |||
| 109 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright | 113 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright |
| 110 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck | 114 | "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck |
| 111 | "clangd", -- pkg install llvm | 115 | "clangd", -- pkg install llvm |
| 116 | "html", -- npm install -g vscode-langservers-extracted | ||
| 112 | "jsonls", -- npm install -g vscode-langservers-extracted | 117 | "jsonls", -- npm install -g vscode-langservers-extracted |
| 113 | "lua_ls", -- pkg install lua-language-server | 118 | "lua_ls", -- pkg install lua-language-server, brew install lua-language-server |
| 114 | "prismals", -- npm install -g @prisma/language-server | 119 | "prismals", -- npm install -g @prisma/language-server |
| 115 | "vtsls", -- npm install -g @vtsls/language-server | 120 | "vtsls", -- npm install -g @vtsls/language-server |
| 116 | }) | 121 | }) |
| @@ -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 |
