feat: implement smear cursor functionality with customizable options
This commit is contained in:
@@ -1630,6 +1630,35 @@ M.image = 'markdown'
|
|||||||
--- Noice configuration options
|
--- Noice configuration options
|
||||||
M.noice = { presets = { inc_rename = true } }
|
M.noice = { presets = { inc_rename = true } }
|
||||||
|
|
||||||
|
--- Smear Cursor
|
||||||
|
M.smearcursor = function()
|
||||||
|
--local bg = require('data.func').get_bg_color('Normal') or '#1d1d2d'
|
||||||
|
return {
|
||||||
|
-- Cursor color. Defaults to Normal gui foreground color
|
||||||
|
cursor_color = '#d3cdc3',
|
||||||
|
|
||||||
|
-- Background color. Defaults to Normal gui background color
|
||||||
|
--normal_bg = bg,
|
||||||
|
|
||||||
|
-- Smear cursor when switching buffers
|
||||||
|
smear_between_buffers = true,
|
||||||
|
|
||||||
|
-- Smear cursor when moving within line or to neighbor lines
|
||||||
|
smear_between_neighbor_lines = true,
|
||||||
|
|
||||||
|
-- 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,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
--- Todo-comments plugin options
|
--- Todo-comments plugin options
|
||||||
M.todo = {
|
M.todo = {
|
||||||
opts = {
|
opts = {
|
||||||
|
|||||||
+2
-16
@@ -160,24 +160,10 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'sphamba/smear-cursor.nvim',
|
'sphamba/smear-cursor.nvim',
|
||||||
lazy = false,
|
event = 'VeryLazy',
|
||||||
enabled = function()
|
enabled = function()
|
||||||
return not require('data.func').is_neovide()
|
return not require('data.func').is_neovide()
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = require('data.types').smearcursor,
|
||||||
-- 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,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user