@@ -135,7 +135,7 @@ are being refreshed, and |v:false| otherwise. It can be accessed from Lua
135
135
The plugin executes commands with `:normal ! ` , which are treated as if they are
136
136
typed. `scrollview_refreshing` may be useful for ignoring the corresponding keys
137
137
when using | vim.on_key() | .
138
- >
138
+ >
139
139
vim.on_key(function(char)
140
140
if vim.g.scrollview_refreshing then return end
141
141
...
@@ -750,7 +750,7 @@ Configuration Example ~
750
750
*scrollview-configuration-example*
751
751
The variables can be customized in your | init.vim | , as shown in the following
752
752
example.
753
- >
753
+ >
754
754
let g:scrollview_excluded_filetypes = ['nerdtree']
755
755
let g:scrollview_current_only = v:true
756
756
" Position the scrollbar at the 80th character of the buffer
@@ -763,7 +763,7 @@ Lua Configuration ~
763
763
*scrollview.setup()*
764
764
A Lua `setup ()` function is provided for convenience, to set globally scoped
765
765
options (the 'scrollview_' prefix is omitted). For example:
766
- >
766
+ >
767
767
require('scrollview').setup({
768
768
excluded_filetypes = {'nerdtree'},
769
769
current_only = true,
@@ -774,7 +774,7 @@ options (the 'scrollview_' prefix is omitted). For example:
774
774
})
775
775
776
776
Alternatively, configuration variables can be set without calling `setup ()` .
777
- >
777
+ >
778
778
vim.g.scrollview_excluded_filetypes = {'nerdtree'},
779
779
vim.g.scrollview_current_only = true,
780
780
-- Position the scrollbar at the 80th character of the buffer
@@ -897,7 +897,7 @@ colors.
897
897
898
898
The highlight groups can be customized in your | init.vim | , as shown in the
899
899
following example.
900
- >
900
+ >
901
901
" Link ScrollView highlight to Pmenu highlight
902
902
highlight link ScrollView Pmenu
903
903
@@ -937,7 +937,7 @@ deregister_sign_spec({spec_id}, {refresh})
937
937
938
938
*scrollview-signs-functions*
939
939
Lua code is necessary for adding new sign functionality to `nvim- scrollview` .
940
- >
940
+ >
941
941
local scrollview = require('scrollview')
942
942
943
943
get_sign_eligible_windows() *scrollview.get_sign_eligible_windows()*
@@ -1016,7 +1016,7 @@ Example ~
1016
1016
The following example shows how to implement sign functionality for showing
1017
1017
the cursor position. This is for the purpose of illustration; cursor signs are
1018
1018
already built in to `nvim- scrollview` (enable with `:ScrollViewEnable cursor`).
1019
- >
1019
+ >
1020
1020
local scrollview = require('scrollview')
1021
1021
1022
1022
local group = 'cursor'
0 commit comments