kitty: set nvim scrollback pager to use clipboard by default

This commit is contained in:
Youwen Wu 2024-09-04 21:25:56 -07:00
parent b1f32afad7
commit d2054b4658
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -17,12 +17,9 @@
background_opacity = "0.8"; background_opacity = "0.8";
allow_remote_control = "socket-only"; allow_remote_control = "socket-only";
listen_on = "unix:/tmp/kitty"; listen_on = "unix:/tmp/kitty";
# action_alias = "kitty_scrollback_nvim kitten /home/youwen/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py"; scrollback_pager = ''nvim --noplugin -c "set signcolumn=no showtabline=0 clipboard=unnamedplus" -c "silent write! /tmp/kitty_scrollback_buffer | te cat /tmp/kitty_scrollback_buffer - "'';
scrollback_pager = ''nvim --noplugin -c "set signcolumn=no showtabline=0" -c "silent write! /tmp/kitty_scrollback_buffer | te cat /tmp/kitty_scrollback_buffer - "'';
}; };
keybindings = { keybindings = {
# "kitty_mod+h" = "kitty_scrollback_nvim";
# "kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output";
"kitty_mod+h" = "show_scrollback"; "kitty_mod+h" = "show_scrollback";
}; };
}; };