adde latex lsp and language
This commit is contained in:
32
zshrc/.zshrc
32
zshrc/.zshrc
@@ -16,7 +16,7 @@ source ~/.plugins.zsh
|
||||
source ~/.export.zsh
|
||||
# https://github.com/jungunn/fzf-git.sh
|
||||
source ~/scripts/fzf-git.sh
|
||||
# you should unse
|
||||
# you should unse
|
||||
source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
|
||||
# Set up fzf key bindings and fuzzy completion
|
||||
source <(fzf --zsh)
|
||||
@@ -25,11 +25,11 @@ source <(fzf --zsh)
|
||||
|
||||
# env aur helper
|
||||
if command -v paru &> /dev/null; then
|
||||
export AUR_HELPER="paru"
|
||||
export AUR_HELPER="paru"
|
||||
elif command -v yay &> /dev/null; then
|
||||
export AUR_HELPER="yay"
|
||||
export AUR_HELPER="yay"
|
||||
else
|
||||
export AUR_HELPER="pacman" # Fallback to pacman
|
||||
export AUR_HELPER="pacman" # Fallback to pacman
|
||||
fi
|
||||
#export AUR_HELPER="paru"
|
||||
|
||||
@@ -67,7 +67,7 @@ setopt hist_ignore_all_dups
|
||||
setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
|
||||
|
||||
# Completion styling
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
@@ -90,7 +90,7 @@ _fzf_comprun() {
|
||||
local command=$1
|
||||
shift
|
||||
|
||||
case "$command" in
|
||||
case "$command" in
|
||||
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
|
||||
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
|
||||
ssh) fzf --preview 'dig {}' "$@" ;;
|
||||
@@ -99,21 +99,21 @@ _fzf_comprun() {
|
||||
}
|
||||
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
# Load a few important annexes, without Turbo
|
||||
# (this is currently required for annexes)
|
||||
zinit light-mode for \
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
|
||||
### End of Zinit's installer chunk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user