Update kitty and zsh config: nvim termcat

This commit is contained in:
rydesun 2023-05-13 16:03:39 +08:00
parent c8bd293d7d
commit 3a14c8019f
2 changed files with 9 additions and 7 deletions

View file

@ -9,6 +9,9 @@ enable_audio_bell no
# 不在系统窗口上报警
window_alert_on_bell no
# 下划线位置
modify_font underline_position 100
# Unicode PUA使用Nerd font会覆盖来自其他字体的字形
symbol_map U+E000-U+F8FF Symbols Nerd Font
# }}}
@ -17,10 +20,9 @@ symbol_map U+E000-U+F8FF Symbols Nerd Font
# 可回滚的行数原始值为2000
scrollback_lines 20000
# 使用nvim作为pager
# 需要搭配我的neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L3
scrollback_pager nvim -R --cmd "let paging=1 | let ansi=1"
# 使用nvim作为pager需要搭配neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L4
scrollback_pager sh -c "exec nvim 63<&0 </dev/null --cmd 'let termcat=63'"
# }}}
# {{{ 按键

6
.zshrc
View file

@ -317,12 +317,12 @@ d() {
fi
}
# 需要搭配我的neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L3
# 需要搭配neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L4
# 使用neovim作为pager
alias v="nvim -R --cmd 'let paging=1'"
# 使用neovim作为pager支持ANSI code
alias V="nvim -R --cmd 'let paging=1 | let ansi=1'"
alias V="sh -c \"exec nvim 63<&0 </dev/null --cmd 'let termcat=63'\""
### 与kitty集成
if ((Z_ENV_KITTY)); then