From 2d5a077607fa1ab0496a66fe4f5efd27ae3d3d71 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 24 Nov 2024 03:19:59 -0500 Subject: [PATCH] feat: add smear cursor functionality for improved visual feedback --- lua/plugins/editor.lua | 22 ++++++++++++++++++++++ lua/plugins/mini.lua | 15 ++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 7106a3c..1d3e846 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -158,4 +158,26 @@ return { 'folke/twilight.nvim', opts = require('data.types').twilight, }, + { + 'sphamba/smear-cursor.nvim', + lazy = false, + enabled = function() + return not require('data.func').is_neovide() + end, + opts = { + -- Cursor color. Defaults to Normal foreground color + cursor_color = '#d3cdc3', + + -- Use floating windows to display smears outside buffers. + -- May have performance issues with other plugins. + use_floating_windows = true, + + -- Set to `true` if your font supports legacy computing symbols (block unicode symbols). + -- Smears will blend better on all backgrounds. + legacy_computing_symbols_support = true, + + -- Attempt to hide the real cursor when smearing. + hide_target_hack = true, + }, + }, } diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index 2810d99..a7bfe58 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -5,9 +5,18 @@ -- ╰─────────────────────────────────────────────────────────╯ return { - { -- mini.animate - import = 'lazyvim.plugins.extras.ui.mini-animate', - }, + -- { -- mini.animate + -- import = 'lazyvim.plugins.extras.ui.mini-animate', + -- }, + -- { + -- 'echasnovski/mini.animate', + -- version = false, + -- opts = { + -- cursor = { + -- enable = false, + -- }, + -- }, + -- }, { 'echasnovski/mini.move', event = 'VeryLazy',