mirror of
https://github.com/NotAShelf/specs.nvim.git
synced 2024-11-01 11:01:16 +00:00
Merge
This commit is contained in:
commit
2a1a5508c4
1 changed files with 22 additions and 3 deletions
25
README.md
25
README.md
|
@ -22,9 +22,9 @@ require('specs').setup{
|
|||
show_jumps = true,
|
||||
min_jump = 30,
|
||||
popup = {
|
||||
delay_ms = 0,
|
||||
inc_ms = 10,
|
||||
blend = 10,
|
||||
delay_ms = 0, -- 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 = "PMenu",
|
||||
fader = require('specs').linear_fader,
|
||||
|
@ -32,3 +32,22 @@ require('specs').setup{
|
|||
}
|
||||
}
|
||||
```
|
||||
You can implement your own custom fader/resizer functions for some pretty cool effects:
|
||||
```lua
|
||||
require('specs').setup{
|
||||
popup = {
|
||||
-- Simple constant blend effect
|
||||
fader = function(blend, cnt)
|
||||
if cnt > 100 then
|
||||
return 80
|
||||
else return nil end
|
||||
end,
|
||||
-- Growing effect from left to right
|
||||
resizer = function(width, ccol, cnt)
|
||||
if width-cnt > 0 then
|
||||
return {width+cnt, ccol}
|
||||
else return nil end
|
||||
end,
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue