Implements horizontal scrolling in previewer & results. (#2437)
* Implements horizontal scrolling in previewer & results. * docs: update wrt. horizontal scrolling in previewer & results
This commit is contained in:
committed by
GitHub
parent
ffe35cb433
commit
5fff2a138b
@@ -47,6 +47,7 @@ local previewers = {}
|
||||
--- - `:teardown()`
|
||||
--- - `:send_input(input)`
|
||||
--- - `:scroll_fn(direction)`
|
||||
--- - `:scroll_horizontal_fn(direction)`
|
||||
---
|
||||
--- `Previewer:new()` expects a table as input with following keys:
|
||||
--- - `setup` function(self): Will be called the first time preview will be
|
||||
@@ -64,6 +65,8 @@ local previewers = {}
|
||||
--- used to send input to the terminal
|
||||
--- application, like less.
|
||||
--- - `scroll_fn` function(self, direction): Used to make scrolling work.
|
||||
--- - `scroll_horizontal_fn` function(self, direction): Used to make
|
||||
--- horizontal scrolling work.
|
||||
previewers.Previewer = Previewer
|
||||
|
||||
--- A shorthand for creating a new Previewer.
|
||||
|
||||
Reference in New Issue
Block a user