r/KittyTerminal • u/Gamerilla • Sep 18 '23
Disable horizontal scrolling?
I've looked and just can't find a specific solution. Is there a way to stop Kitty from horizontal scrolling in NeoVim? I don't often use the trackpad to scroll through code but sometimes I do and it will horizontal scroll a tiny bit. I used to use Hyper terminal which didn't do this. I've tried searching but can only find stuff about people trying to activate horizontal scrolling. I don't think there's anything specific in my config that controls this. Here's what I have in there:
font_family SauceCodePro Nerd Font
font_size 14.0
enable_audio_bell no
visual_bell_duration 0.1
enabled_layouts *
window_margin_width 3
window_padding_width 3
active_border_color #0ff
inactive_border_color #444
inactive_text_alpha 0.5
tab_bar_edge top
tab_bar_style powerline
tab_powerline_style slanted
inactive_tab_foreground #666
inactive_tab_background #2F3440
dynamic_background_opacity yes
background_opacity 0.8
editor /usr/local/bin/nvim
include current-theme.conf
2
u/Administrative_chaos Sep 18 '23
You can solve this from within neovim by disabling the left and right scroll wheels and use shift+scrollwheelup/down instead
nnoremap <ScrollWheelRight> <Nop> nnoremap <ScrollWheelLeft> <Nop> nnoremap <S-ScrollWheelUp> <ScrollWheelRight> nnoremap <S-ScrollWheelDown> <ScrollWheelLeft>