diff options
author | ame <[email protected]> | 2023-09-29 19:49:11 -0500 |
---|---|---|
committer | ame <[email protected]> | 2023-09-29 19:49:11 -0500 |
commit | 9818f56002f34190b393951cc0118fd8435b0fe3 (patch) | |
tree | 9987d23bde9bfa6beee9697526af8c8fd5258e05 /lua/config/smoothcursor.lua |
init
Diffstat (limited to 'lua/config/smoothcursor.lua')
-rw-r--r-- | lua/config/smoothcursor.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/config/smoothcursor.lua b/lua/config/smoothcursor.lua new file mode 100644 index 0000000..9c8927e --- /dev/null +++ b/lua/config/smoothcursor.lua @@ -0,0 +1,30 @@ +require('smoothcursor').setup({ + autostart = true, + cursor = "", -- cursor shape (need nerd font) + texthl = "SmoothCursor", -- highlight group, default is { bg = nil, fg = "#FFD400" } + linehl = nil, -- highlight sub-cursor line like 'cursorline', "CursorLine" recommended + type = "default", -- define cursor movement calculate function, "default" or "exp" (exponential). + fancy = { + enable = false, -- enable fancy mode + head = { cursor = "▷", texthl = "SmoothCursor", linehl = nil }, + body = { + { cursor = "", texthl = "SmoothCursorRed" }, + { cursor = "", texthl = "SmoothCursorOrange" }, + { cursor = "●", texthl = "SmoothCursorYellow" }, + { cursor = "●", texthl = "SmoothCursorGreen" }, + { cursor = "•", texthl = "SmoothCursorAqua" }, + { cursor = ".", texthl = "SmoothCursorBlue" }, + { cursor = ".", texthl = "SmoothCursorPurple" }, + }, + tail = { cursor = nil, texthl = "SmoothCursor" } + }, + flyin_effect = nil, -- "bottom" or "top" + speed = 25, -- max is 100 to stick to your current position + intervals = 35, -- tick interval + priority = 10, -- set marker priority + timeout = 3000, -- timout for animation + threshold = 3, -- animate if threshold lines jump + disable_float_win = false, -- disable on float window + enabled_filetypes = nil, -- example: { "lua", "vim" } + disabled_filetypes = nil, -- this option will be skipped if enabled_filetypes is set. example: { "TelescopePrompt", "NvimTree" } +}) |