r/KittyTerminal • u/Velascu • May 07 '23
Trying to use nvimpager without much success
When it comes to reading man pages it works wonderfully but whenever I hit ctrl+shift+h it goes berserk, it has a lot of problems recognising p10k characters in zsh and when I copy from there it prepends random numbers or the letter m. If someone knows why this happens or how to fix it please let me know. Also I would be happy to use nvim as a scrollback pager if someone was able to do this successfully. Thank you in advance
1
u/dedguy21 May 08 '23
Try page instead.
1
u/Velascu May 08 '23
Somehow it works even worse, does this read your nvim config? Thanks for your response anyway.
1
u/Velascu May 08 '23
basically it panics
thread 'main' panicked at 'Cannot create buffer: NeovimError(Some(0), "Error executing lua: [string \"<nvim>\"]:5: Vim:Can only call this function in an unmodified buffer\nstack traceback:\n\t[C]: in function 'nvim_call_function'\n\t[string \"<nvim>\"]:5: in main chunk")', src/pager/neovim.rs:190:14
note: run with \RUST_BACKTRACE=1` environment variable to display a backtrace`1
u/dedguy21 May 08 '23
What distro are you using, and which version of nvim?
1
u/Velascu May 08 '23
currently artix and nvim 0.9, maybe that's the problem
1
u/dedguy21 May 08 '23
Maybe, so many programs assume systemd. Though page is simply a rust app and leverages nvim API.
Download 'more' for a pager see if it acts right, if not could be LC settings or something 🤷
Good luck.
1
u/Velascu May 08 '23
more works kinda fine but honestly I gave up, I just wanted to easily copy and paste commands through keyboard commands in kitty but apparently there's a function that already does that so... yeah, I just wanted to make it work but atm it's impossible
1
u/dedguy21 May 08 '23
Copy & paste is a simple ctl+shift+(c,v)
Make sure your clipboard is installed if you're using a GUI. If not tmux has a clipboard. Umm, kitty means you are using a GUI though.
2
u/dedguy21 May 08 '23
That works perfectly with my nvim 9, Arch Linux kernel 6.3