nvim/zsh/tmux: better-escape, starship prompt and plugins, tmux rounded corners

- zsh: add plugins: zsh-history-substring-search, zsh-z
This commit is contained in:
Łukasz Pankowski 2024-06-20 00:20:31 +02:00
parent ad79dc5bbf
commit 4d7bd1a487
4 changed files with 35 additions and 15 deletions

View File

@ -2,6 +2,7 @@
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "50fcf17db7c75af80e6b6109acfbfb4504768780" }, "LuaSnip": { "branch": "master", "commit": "50fcf17db7c75af80e6b6109acfbfb4504768780" },
"arrow.nvim": { "branch": "master", "commit": "0b0191d967d9fd837a850f2ccaa95d5917239404" }, "arrow.nvim": { "branch": "master", "commit": "0b0191d967d9fd837a850f2ccaa95d5917239404" },
"better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" },
"blame.nvim": { "branch": "main", "commit": "dedbcdce857f708c63f261287ac7491a893912d0" }, "blame.nvim": { "branch": "main", "commit": "dedbcdce857f708c63f261287ac7491a893912d0" },
"bookmarks.nvim": { "branch": "main", "commit": "42371a76cdd786452b537490926b1b6a041672e5" }, "bookmarks.nvim": { "branch": "main", "commit": "42371a76cdd786452b537490926b1b6a041672e5" },
"ccc.nvim": { "branch": "main", "commit": "22924b7bde685e1816140f17a897950ef82b969a" }, "ccc.nvim": { "branch": "main", "commit": "22924b7bde685e1816140f17a897950ef82b969a" },

View File

@ -16,4 +16,10 @@ return {
} }
end, end,
}, },
{
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup()
end,
},
} }

View File

@ -16,21 +16,36 @@ plug "zap-zsh/fzf"
plug "zsh-users/zsh-autosuggestions" plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting" plug "zsh-users/zsh-syntax-highlighting"
plug "MichaelAquilina/zsh-you-should-use" plug "MichaelAquilina/zsh-you-should-use"
plug "zsh-users/zsh-history-substring-search"
plug "agkozak/zsh-z"
ZVM_VI_INSERT_ESCAPE_BINDKEY=jj
ZSH_HIGHLIGHT_STYLES[comment]=fg=blue ZSH_HIGHLIGHT_STYLES[comment]=fg=blue
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=bg=magenta,fg=black,bold
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=bg=red,fg=black,bold
ZSHZ_ECHO=1
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# Prompt. # Prompt.
autoload -Uz vcs_info if which starship > /dev/null; then
precmd () { vcs_info } eval "$(starship init zsh)"
setopt prompt_subst else
zstyle ':vcs_info:git:*' check-for-changes true autoload -Uz vcs_info
zstyle ':vcs_info:git:*' formats '%F{green}%r%f/%F{yellow}%S%f %F{magenta}(%b)%u%c%f ' precmd () { vcs_info }
zstyle ':vcs_info:git:*' actionformats '%F{green}%r%f/%F{yellow}%S%f %F{magenta}(%b|%a)%u%c%f ' setopt prompt_subst
zstyle ':vcs_info:*' nvcsformats '%F{green}%~%f%b ' zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:*' enable git zstyle ':vcs_info:git:*' formats '%F{green}%r%f/%F{yellow}%S%f %F{magenta}(%b)%u%c%f '
PS1='%B%F{blue}%n@%m%f ${vcs_info_msg_0_}%B%#%f%b ' zstyle ':vcs_info:git:*' actionformats '%F{green}%r%f/%F{yellow}%S%f %F{magenta}(%b|%a)%u%c%f '
RPROMPT='%(?..%B%F{red}%?%f%b)' zstyle ':vcs_info:*' nvcsformats '%F{green}%~%f%b '
zstyle ':vcs_info:*' enable git
PS1='%B%F{blue}%n@%m%f ${vcs_info_msg_0_}%B%#%f%b '
RPROMPT='%(?..%B%F{red}%?%f%b)'
fi
# History. # History.

View File

@ -27,9 +27,7 @@ set -g set-titles on
set -g set-titles-string "#H [#S]" set -g set-titles-string "#H [#S]"
set -g status-justify centre set -g status-justify centre
set -g status-left "#[bg=green]#[fg=black] #H #[bg=default]#[fg=default] #S" set -g status-left " #[fg=green]#[bg=green]#[fg=black] #H #[bg=default]#[fg=green]#[fg=default] #S"
set -g status-left-length 50 set -g status-left-length 50
set -g status-right "#[bg=green]#[fg=black] %H:%M " set -g status-right "#[fg=green]#[bg=green]#[fg=black] %H:%M #[bg=default]#[fg=green] "
set-window-option -g window-status-current-format '#[fg=green]#[bg=green]#[fg=black] #I:#W #[fg=green]#[bg=black]'
set-window-option -g window-status-current-style bg=green
set-window-option -ga window-status-current-style fg=black