mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
refactor kitty config
This commit is contained in:
parent
9335bda947
commit
dde3a2b722
3 changed files with 36 additions and 33 deletions
|
|
@ -1,41 +1,23 @@
|
|||
# 主题
|
||||
include themes/everforest.conf
|
||||
font_size 9
|
||||
background_opacity 0.95
|
||||
|
||||
# 使用nvim查看缓冲区
|
||||
scrollback_pager nvim --cmd "let $NVIM_AS_COLORFUL_PAGER=1"
|
||||
# 关闭响铃
|
||||
enable_audio_bell no
|
||||
window_alert_on_bell no
|
||||
|
||||
# 按键映射
|
||||
kitten_alias hints hints --alphabet [;ajfkdlshgqweruiopzxcvnmbyt12345
|
||||
map ctrl+g>ctrl+g kitten hints --type=word --program -
|
||||
map ctrl+g>shift+g kitten hints --type=word --program @
|
||||
map ctrl+g>ctrl+n kitten hints --type=linenum nvim +{line} {path}
|
||||
map ctrl+g>ctrl+l kitten hints --type=line --program -
|
||||
map ctrl+g>shift+l kitten hints --type=line --program @
|
||||
map ctrl+g>ctrl+u kitten hints --type=url --program -
|
||||
map ctrl+g>shift+u kitten hints --type=url --program @
|
||||
map ctrl+g>ctrl+i kitten hints --type=ip --program -
|
||||
map ctrl+g>shift+i kitten hints --type=ip --program @
|
||||
|
||||
scrollback_pager nvim --cmd "let $NVIM_AS_PAGER=1" --cmd "let $HANDLE_ANSI=1"
|
||||
|
||||
font_size 9
|
||||
|
||||
enable_audio_bell no
|
||||
window_alert_on_bell no
|
||||
|
||||
background_opacity 0.95
|
||||
|
||||
foreground #d3c6aa
|
||||
background #2b3339
|
||||
cursor #7fbbb3
|
||||
|
||||
color0 #4b565c
|
||||
color1 #e67e80
|
||||
color2 #a7c080
|
||||
color3 #dbbc7f
|
||||
color4 #7fbbb3
|
||||
color5 #d699b6
|
||||
color6 #83c092
|
||||
color7 #d3c6aa
|
||||
|
||||
color8 #4b565c
|
||||
color9 #e67e80
|
||||
color10 #a7c080
|
||||
color11 #dbbc7f
|
||||
color12 #7fbbb3
|
||||
color13 #d699b6
|
||||
color14 #83c092
|
||||
color15 #d3c6aa
|
||||
map ctrl+g>ctrl+n kitten hints --type=linenum nvim +{line} {path}
|
||||
map ctrl+g>ctrl+y kitten hints --type=hyperlink
|
||||
|
|
|
|||
21
.config/kitty/themes/everforest.conf
Normal file
21
.config/kitty/themes/everforest.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
foreground #d3c6aa
|
||||
background #2b3339
|
||||
cursor #7fbbb3
|
||||
|
||||
color0 #4b565c
|
||||
color1 #e67e80
|
||||
color2 #a7c080
|
||||
color3 #dbbc7f
|
||||
color4 #7fbbb3
|
||||
color5 #d699b6
|
||||
color6 #83c092
|
||||
color7 #d3c6aa
|
||||
|
||||
color8 #4b565c
|
||||
color9 #e67e80
|
||||
color10 #a7c080
|
||||
color11 #dbbc7f
|
||||
color12 #7fbbb3
|
||||
color13 #d699b6
|
||||
color14 #83c092
|
||||
color15 #d3c6aa
|
||||
|
|
@ -221,7 +221,7 @@ mcd() { mkdir -p $1 && cd $1 }
|
|||
alias x='xdg-open'
|
||||
alias v="nvim -R --cmd 'let \$NVIM_AS_PAGER=1'" \
|
||||
&& compdef v=nvim # 使用neovim作为pager
|
||||
alias V="nvim -R --cmd 'let \$NVIM_AS_PAGER=1' --cmd 'let \$HANDLE_ANSI=1'" \
|
||||
alias V="nvim -R --cmd 'let \$NVIM_AS_COLORFUL_PAGER=1'" \
|
||||
&& compdef V=nvim # 使用neovim作为pager,支持ANSI code
|
||||
if [[ -e $NVIM_LISTEN_ADDRESS ]]; then
|
||||
alias e='nvr --remote-tab'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue