smaller context, faster scroll
This commit is contained in:
parent
215778e9c4
commit
e482a1a6d1
2 changed files with 6 additions and 2 deletions
|
@ -10,6 +10,10 @@ return {
|
||||||
horizontal = 16,
|
horizontal = 16,
|
||||||
},
|
},
|
||||||
delay = 1,
|
delay = 1,
|
||||||
|
max_delta = {
|
||||||
|
lines = 100,
|
||||||
|
time = 200,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local cinnamon = require("cinnamon")
|
local cinnamon = require("cinnamon")
|
||||||
|
|
|
@ -3,10 +3,10 @@ return {
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
opts = {
|
opts = {
|
||||||
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
||||||
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
max_lines = 15, -- How many lines the window should span. Values <= 0 mean no limit.
|
||||||
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
|
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
|
||||||
line_numbers = true,
|
line_numbers = true,
|
||||||
multiline_threshold = 20, -- Maximum number of lines to show for a single context
|
multiline_threshold = 3, -- Maximum number of lines to show for a single context
|
||||||
trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
||||||
mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline'
|
mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline'
|
||||||
-- Separator between context and content. Should be a single character string, like '-'.
|
-- Separator between context and content. Should be a single character string, like '-'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue