-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.lua
88 lines (63 loc) · 3.07 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-- All the following options can be set using the `setup` function.
-- Refer to the README for more information.
local M = {}
-- General configuration -------------------------------------------------------
-- Smear cursor when switching buffers or windows
M.smear_between_buffers = true
-- Smear cursor when moving within line or to neighbor lines
M.smear_between_neighbor_lines = true
-- Smear cursor when entering or leaving command line mode
M.smear_to_cmd = true
-- Draw the smear in buffer space instead of screen space when scrolling
M.scroll_buffer_space = true
-- Set to `true` if your font supports legacy computing symbols (block unicode symbols).
-- Smears will blend better on all backgrounds.
M.legacy_computing_symbols_support = false
-- Set to `true` if your cursor is a vertical bar in normal mode.
-- Use with `matrix_pixel_threshold = 0.3`
M.vertical_bar_cursor = false
-- Attempt to hide the real cursor by drawing a character below it.
M.hide_target_hack = true
-- Number of windows that stay open for rendering.
M.max_kept_windows = 50
-- Adjust to have the smear appear above or below other floating windows
M.windows_zindex = 300
-- List of filetypes where the plugin is disabled.
M.filetypes_disabled = {}
-- Sets animation framerate
M.time_interval = 17 -- milliseconds
-- After changing target position, wait before triggering animation.
-- Useful if the target changes and rapidly comes back to its original position.
-- E.g. when hitting a keybinding that triggers CmdlineEnter.
-- Increase if the cursor makes weird jumps when hitting keys.
M.delay_animation_start = 0 -- milliseconds
-- Smear configuration ---------------------------------------------------------
-- How fast the smear's head moves towards the target.
-- 0: no movement, 1: instantaneous
M.stiffness = 0.6
-- How fast the smear's tail moves towards the target.
-- 0: no movement, 1: instantaneous
M.trailing_stiffness = 0.3
-- Controls if middle points are closer to the head or the tail.
-- < 1: closer to the tail, > 1: closer to the head
M.trailing_exponent = 2
-- How much the smear slows down when getting close to the target.
-- < 0: less slowdown, > 0: more slowdown. Keep small, e.g. [-0.2, 0.2]
M.slowdown_exponent = 0
-- Stop animating when the smear's tail is within this distance (in characters) from the target.
M.distance_stop_animating = 0.1
-- When to switch between rasterization methods
M.max_slope_horizontal = 0.5
M.min_slope_vertical = 2
M.color_levels = 16 -- Minimum 1, don't set manually if using cterm_cursor_colors
M.gamma = 2.2 -- For color blending
M.max_shade_no_matrix = 0.75 -- 0: more overhangs, 1: more matrices
M.matrix_pixel_threshold = 0.7 -- 0: all pixels, 1: no pixel
M.matrix_pixel_min_factor = 0.5 -- 0: all pixels, 1: no pixel
M.volume_reduction_exponent = 0.3 -- 0: no reduction, 1: full reduction
M.minimum_volume_factor = 0.7 -- 0: no limit, 1: no reduction
M.max_length = 25 -- Maximum smear length
-- For debugging ---------------------------------------------------------------
M.logging_level = vim.log.levels.INFO
-- Set trailing_stiffness to 0 for debugging
return M