From 7ba3a0cc2a7c1409504a9049f572ac5c739da2e8 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 10 Jan 2021 17:55:47 +0530 Subject: [PATCH] kitty: Use neovim as scrollback pager --- kitty/.config/kitty/kitty.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf index 47e0c88..f38c796 100644 --- a/kitty/.config/kitty/kitty.conf +++ b/kitty/.config/kitty/kitty.conf @@ -112,7 +112,9 @@ scrollback_lines 4096 #: recommended as it can slow down resizing of the terminal and also #: use large amounts of RAM. -scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER +# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER + +scrollback_pager nvim -c 'setlocal ft=man nonumber nolist showtabline=0 foldcolumn=0' -c "autocmd VimEnter * normal G" - #: Program with which to view scrollback in a new window. The #: scrollback buffer is passed as STDIN to this program. If you change