mirror of
https://github.com/NotAShelf/specs.nvim.git
synced 2025-12-17 09:21:22 +00:00
Add first faders/resizers
This commit is contained in:
parent
89a407d9b3
commit
0450c1008c
2 changed files with 92 additions and 0 deletions
26
plugin/specs.vim
Normal file
26
plugin/specs.vim
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
fun! Specs()
|
||||
" remember to remove this line later ;)
|
||||
lua for k in pairs(package.loaded) do if k:match("^specs") then package.loaded[k] = nil end end
|
||||
lua require('specs').show_specs({ delay_ms = 1, inc_ms = 10, blend = 10, width = 20, fader=require('specs').linear_fader, resizer=require('specs').shrink_resizer })
|
||||
endfun
|
||||
|
||||
" e.g:
|
||||
" require('specs').specs_popup({
|
||||
" delay = ...,
|
||||
" reps = ...,
|
||||
" blend = ...,
|
||||
" width = ...,
|
||||
" fader = require('specs').linear_fader(),
|
||||
" resizer = require('specs').shrink_resizer()
|
||||
" colorizer = ...,
|
||||
" })
|
||||
|
||||
|
||||
" pre-packaged opts could come as 'styles', which also have opts
|
||||
" themselves:
|
||||
" require('specs').specs_popup(require('specs').blink_style({ }))
|
||||
|
||||
augroup Specs
|
||||
autocmd!
|
||||
augroup END
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue