By default the terminal buffer scrollback size is set to 1024, but that is not enough for me and I would like to change it.
help terminal
does not explain how to configure this.
By default the terminal buffer scrollback size is set to 1024, but that is not enough for me and I would like to change it.
help terminal
does not explain how to configure this.
According to :help terminal-emulator-configuration
, the scrollback buffer size is controlled by the terminal_scrollback_buffer_size
variable.
For example, add the following to your config to set it globally to the maximum value, as defined in :help terminal-emulator-configuration
:
let g:terminal_scrollback_buffer_size = 100000
set scrollback=100000
in ~/.config/nvim/init.vim
.