Closed susliko closed 3 years ago
@susliko Now you can simply call require('nvim-terminal').setup()
to setup everything. More about keymaps and customization are available in the README. The configuration still should work regardless the new updates.
Thank you for this awesome plugin!
Here is an improvement suggestion
Problem
Whenever you resize your windows with vim embedded
resize
function, you might expect your toggling terminal windows to respect this setting after closing and opening them again (personally I even have these remaps:nnoremap <Up> :resize -2<CR>
nnoremap <Down> :resize +2<CR>
).Now, whenever
Window.close
is executed, it doesn't memoize window's width and height. Next timeWindow.open
is executed, it opens with its default settingsSolution
I tweaked it by modifying the
Window.close
function:My proposition is either to embed it as default behaviour or to make a setting for it