added tiny-glimmer

This commit is contained in:
Oliver Hartmann
2025-11-05 11:38:18 +00:00
parent 238f748478
commit 02f6469412

View File

@@ -0,0 +1,58 @@
return {
'rachartier/tiny-glimmer.nvim',
event = 'VeryLazy',
priority = 10, -- Low priority to catch other plugins' keybindings
config = function()
require('tiny-glimmer').setup({
overwrite = {
yank = {
enabled = true,
default_animation = 'fade',
},
search = {
enabled = true,
},
undo = {
enabled = true,
default_animation = {
name = 'fade',
settings = {
from_color = '@comment.warning',
max_duration = 500,
min_duration = 500,
},
},
},
redo = {
enabled = true,
default_animation = {
name = 'fade',
settings = {
from_color = '@comment.warning',
max_duration = 500,
min_duration = 500,
},
},
redo_mapping = '<c-r>',
},
},
animations = {
fade = {
from_color = '@comment.warning', -- Start color (highlight group or hex)
},
reverse_fade = {
from_color = '@comment.warning', -- Start color (highlight group or hex)
},
pulse = {
from_color = '@comment.warning', -- Start color (highlight group or hex)
},
bounce = {
from_color = '@comment.warning', -- Start color (highlight group or hex)
},
left_to_right = {
from_color = '@comment.warning', -- Start color (highlight group or hex)
},
},
})
end,
}