From 47cead8c63f62539a2b33b0c1b0577e30099f597 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 4 Dec 2024 16:46:28 +0000 Subject: [PATCH] abbr --- config/.config/zsh-abbr/user-abbreviations | 1 + vim/.vim/lua/plugins/neotree.lua | 2 +- zsh/.abbr.zsh | 1 + zsh/.zshrc | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 zsh/.abbr.zsh diff --git a/config/.config/zsh-abbr/user-abbreviations b/config/.config/zsh-abbr/user-abbreviations index d0b4935..bdc0c36 100644 --- a/config/.config/zsh-abbr/user-abbreviations +++ b/config/.config/zsh-abbr/user-abbreviations @@ -1,3 +1,4 @@ +abbr "allpaths"="blaze query \"allpaths(%, %)\" --output graph | /google/data/ro/projects/graphviz-server/graphviz" abbr "bb"="blaze build" abbr "bq"="blaze query" abbr "br"="blaze run" diff --git a/vim/.vim/lua/plugins/neotree.lua b/vim/.vim/lua/plugins/neotree.lua index ee588df..71304c9 100644 --- a/vim/.vim/lua/plugins/neotree.lua +++ b/vim/.vim/lua/plugins/neotree.lua @@ -48,7 +48,7 @@ return { return { "m", ":Neotree float git_status", desc = "Open NeoTree CWD float" } end)(), -- { "b", ":Neotree float buffers" }, - -- { "", ":Neotree float dir=%:p:h" }, + { "f", ":Neotree float dir=%:p:h" }, { "", ":Neotree toggle dir=%:p:h" }, -- { ".", ":Neotree reveal_force_cwd", desc = "Open NeoTree CWD float" }, }, diff --git a/zsh/.abbr.zsh b/zsh/.abbr.zsh new file mode 100644 index 0000000..d30c1c8 --- /dev/null +++ b/zsh/.abbr.zsh @@ -0,0 +1 @@ +ABBR_SET_LINE_CURSOR=1 diff --git a/zsh/.zshrc b/zsh/.zshrc index a2ae1bb..e71f14b 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -52,6 +52,7 @@ fi zplug load ZSH_AUTOSUGGEST_STRATEGY=( abbreviations $ZSH_AUTOSUGGEST_STRATEGY ) +source ~/.abbr.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.