From aedd86949ca4c4c0f98a53fc148f9949cd487877 Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Mon, 18 Mar 2024 20:05:21 -0400 Subject: [PATCH 1/4] ih-config v2. --- git/.gitconfig | 5 +++++ starship.toml | 6 ++++++ zsh/zshrc | 3 +++ 3 files changed, 14 insertions(+) diff --git a/git/.gitconfig b/git/.gitconfig index 10ea5f7..78c9691 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -11,5 +11,10 @@ branch = false [init] defaultBranch = main + templateDir = /Users/matt.layman/.ih/git-template [alias] gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f" +[core] + excludesfile = /Users/matt.layman/.gitignore_global +[url "git@github.com:ConsultingMD"] + insteadOf = https://github.com/ConsultingMD diff --git a/starship.toml b/starship.toml index 9221cfd..92d6976 100644 --- a/starship.toml +++ b/starship.toml @@ -8,3 +8,9 @@ command_timeout = 1000 [aws] disabled = true + +[custom.aws] +command = 'echo "$AWS_ENVIRONMENT/$AWS_ENVIRONMENT_ROLE:$AWS_DEFAULT_REGION"' +format = "[$symbol ($output)]($style) " +symbol = "🌩 " +when = true diff --git a/zsh/zshrc b/zsh/zshrc index 88b6379..1c213d2 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -76,3 +76,6 @@ eval "$(starship init zsh)" # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" + +# This loads the Included Health shell augmentations into your interactive shell +. "$HOME/.ih/augment.sh" From 7ad1ba3bd259b57ce6ab6377fb96fff1794e8b27 Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Fri, 26 Apr 2024 17:14:44 -0400 Subject: [PATCH 2/4] Add a shortcut for golinks. --- zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 1c213d2..a50b603 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -77,5 +77,9 @@ eval "$(starship init zsh)" # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +gol() { + open https://go/$1 +} + # This loads the Included Health shell augmentations into your interactive shell . "$HOME/.ih/augment.sh" From 1bea875c3abdedc16b043919b5ba560022f80135 Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Fri, 26 Apr 2024 17:17:09 -0400 Subject: [PATCH 3/4] Use an easier to remember function name. --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index a50b603..cc28839 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -77,7 +77,7 @@ eval "$(starship init zsh)" # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -gol() { +function go/() { open https://go/$1 } From c875d7c87bc639dc3057c4a42fa135ba3775447b Mon Sep 17 00:00:00 2001 From: Matt Layman Date: Tue, 19 Nov 2024 16:19:29 -0500 Subject: [PATCH 4/4] Handle acceptance and server build flags. --- nvim/lua/mblayman/plugins/lsp.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nvim/lua/mblayman/plugins/lsp.lua b/nvim/lua/mblayman/plugins/lsp.lua index 1f57d44..8da458e 100644 --- a/nvim/lua/mblayman/plugins/lsp.lua +++ b/nvim/lua/mblayman/plugins/lsp.lua @@ -148,7 +148,13 @@ return { -- See `:help lspconfig-all` for a list of all the pre-configured LSPs local servers = { clangd = {}, -- C - gopls = {}, -- Go + gopls = { + settings = { + gopls = { + buildFlags = { "-tags=acceptance server" }, + }, + }, + }, -- Go pyright = {}, -- Python lua_ls = { -- cmd = {...},