mirror of
https://github.com/NotAShelf/specs.nvim.git
synced 2024-12-31 23:22:24 +00:00
27 lines
795 B
VimL
27 lines
795 B
VimL
|
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
|
||
|
|