diff --git a/lua/plugins/tiny-glimmer.lua b/lua/plugins/tiny-glimmer.lua new file mode 100644 index 0000000..f237d26 --- /dev/null +++ b/lua/plugins/tiny-glimmer.lua @@ -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 = '', + }, + }, + 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, +}