repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/bugabinga/fun.lua
Rawlocal puk = require 'std.puk'
local map = require 'std.map'
local ignored = require 'std.ignored'
map.normal {
description = 'Find cursor!',
category = 'fun',
keys = '<leader><leader>',
command = function() require 'specs'.show_specs() end,
}
map.normal {
description = 'Find cursor, for real!',
category = 'fun',
keys = '<leader><leader><leader>',
command = function()
require 'specs'.show_specs { width = 69, delay_ms = 69, inc_ms = 42 }
end,
}
puk.defer 'specs' (function(specs)
specs.setup {
show_jumps = true,
min_jump = 10,
popup = {
delay_ms = 10, -- delay before popup displays
inc_ms = 10, -- time increments used for fade/resize effects
blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend
width = 10,
winhl = 'Cursor',
fader = specs.exp_fader,
resizer = specs.shrink_resizer,
},
ignore_filetypes = ignored.filetypes_kv,
ignore_buftypes = ignored.buftypes_kv,
}
end)
puk.defer 'smear_cursor' (function(smear)
smear.setup {
stiffness = 0.8, -- 0.6 [0, 1]
trailing_stiffness = 0.5, -- 0.4 [0, 1]
stiffness_insert_mode = 0.7, -- 0.5 [0, 1]
trailing_stiffness_insert_mode = 0.7, -- 0.5 [0, 1]
damping = 0.8, -- 0.65 [0, 1]
damping_insert_mode = 0.8, -- 0.7 [0, 1]
distance_stop_animating = 0.5, -- 0.1 > 0
}
end)