AutoYADM commit: 2024-12-15 23:30:01
This commit is contained in:
parent
5f4533524b
commit
4829cd7c07
3 changed files with 49 additions and 4 deletions
|
@ -5,6 +5,23 @@ local defaults = {
|
|||
enabled = true,
|
||||
scale_factor = 1.1,
|
||||
},
|
||||
animations = {
|
||||
position_animation_length = nil,
|
||||
scroll_animation_length = nil,
|
||||
scroll_animation_far_lines = nil,
|
||||
hide_mouse_when_typing = nil,
|
||||
underline_stroke_scale = nil,
|
||||
},
|
||||
cursor = {
|
||||
-- prefixed with neovide_cursor
|
||||
animation_length = nil,
|
||||
trail_size = nil,
|
||||
antialiasing = nil,
|
||||
animate_in_insert_mode = nil,
|
||||
animate_command_line = nil,
|
||||
unfocused_outline_width = nil,
|
||||
smooth_blink = nil,
|
||||
},
|
||||
}
|
||||
|
||||
M.setup = function(opts)
|
||||
|
@ -20,6 +37,22 @@ M.setup = function(opts)
|
|||
change_scale_factor(1 / opts.font_maps.scale_factor)
|
||||
end)
|
||||
end
|
||||
local animations = opts.animations
|
||||
if animations then
|
||||
for k, v in pairs(animations) do
|
||||
if k ~= nil then
|
||||
vim.g[k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
local cursor = opts.cursor
|
||||
if cursor then
|
||||
for k, v in pairs(cursor) do
|
||||
if k ~= nil then
|
||||
vim.g["neovide_cursor_" .. k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue