diff --git a/.config/nvim/lua/casraf/plugins/lsp.lua b/.config/nvim/lua/casraf/plugins/lsp.lua index 421f3d4d..639221fd 100644 --- a/.config/nvim/lua/casraf/plugins/lsp.lua +++ b/.config/nvim/lua/casraf/plugins/lsp.lua @@ -267,7 +267,13 @@ return { enabled = true, notify_errors = false, -- if there is an error whilst running then notify the user -- open_cmd = "tabedit", -- command to use to open the log buffer - open_cmd = "belowright vnew" + open_cmd = "belowright vnew", + filter = function(line) + if line:match("^D/EGL") or line:match("^E/libEGL") then + return false + end + return true + end, }, dev_tools = { autostart = false, -- autostart devtools server if not detected diff --git a/.config/sofmani.yml b/.config/sofmani.yml index ada00cd0..92f1de19 100644 --- a/.config/sofmani.yml +++ b/.config/sofmani.yml @@ -119,21 +119,31 @@ install: opts: tap: jesseduffield/lazygit - name: lazygit - type: shell - platforms: - only: ['linux'] - check_has_update: | - LATEST=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') - CURRENT=$(lazygit --version | awk -F'[,=]' '{print $6}') - test "$LATEST" != "$CURRENT" + type: github-release + # platforms: + # only: ['linux'] opts: - command: | - cd $(mktemp -d) - VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') - curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${VERSION}_Linux_x86_64.tar.gz" - tar xf lazygit.tar.gz lazygit - sudo install lazygit /usr/local/bin - rm -rf lazygit.tar.gz lazygit + repository: jesseduffield/lazygit + strategy: tar + destination: ~/.cache/bin + # destination: /usr/local/bin + download_filename: lazygit_{tag}_Linux_x86_64.tar.gz + # - name: lazygit + # type: shell + # platforms: + # only: ['linux'] + # check_has_update: | + # LATEST=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') + # CURRENT=$(lazygit --version | awk -F'[,=]' '{print $6}') + # test "$LATEST" != "$CURRENT" + # opts: + # command: | + # cd $(mktemp -d) + # VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') + # curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${VERSION}_Linux_x86_64.tar.gz" + # tar xf lazygit.tar.gz lazygit + # sudo install lazygit /usr/local/bin + # rm -rf lazygit.tar.gz lazygit - name: lazygit-config type: group tags: config diff --git a/aliases.zsh b/aliases.zsh index 6dfd2907..aa92465b 100755 --- a/aliases.zsh +++ b/aliases.zsh @@ -163,3 +163,4 @@ alias p..="pushd .." alias ollama-serve="brew services start ollama" alias ldc="lazydocker" alias opsign="eval \$(op signin)" +alias emulator="\$HOME/Library/Android/sdk/emulator/emulator" diff --git a/plugins/common/tpl.zsh b/plugins/common/tpl.zsh index 0ad37793..da220b4b 100755 --- a/plugins/common/tpl.zsh +++ b/plugins/common/tpl.zsh @@ -2,15 +2,14 @@ SCAFFOLDS_DIR="$DOTFILES/scaffolds" - -tpl () { +tpl() { declare -A tpl_aliases=( - ef "editorfiles" + ef "editorfile" gh "github" ghp "github.pnpm" ) declare -A tpl_no_name=( - editorfiles "1" + editorfile "1" gh "1" ghp "1" ) @@ -22,7 +21,7 @@ tpl () { fi if [[ "${tpl_no_name[$key]}" -eq 1 ]]; then - name="- $args" + name="$args -" else if [[ -z "$args" ]]; then echo_red "Usage: tpl $key " @@ -32,4 +31,3 @@ tpl () { simple-scaffold -g chenasraf/templates -k $key $args } -