Update 2024-12-15 14:45 OpenBSD/amd64-t14
This commit is contained in:
29
.vim/pack/plugins/start/vim-poppy/README.md
Normal file
29
.vim/pack/plugins/start/vim-poppy/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# poppy.vim
|
||||
vim port of [highlightparentheses.el](https://github.com/tsdh/highlight-parentheses.el) which gives rainbow parens propagating from the cursor
|
||||
|
||||
Enabled with autocmds ( :h autocommand )
|
||||
|
||||
example:
|
||||
|
||||
`au! cursormoved * call PoppyInit()`
|
||||
|
||||
or:
|
||||
|
||||
`au! cursormoved *.lisp call PoppyInit()`
|
||||
|
||||
or even make a mapping:
|
||||
|
||||
```
|
||||
augroup Poppy
|
||||
au!
|
||||
augroup END
|
||||
nnoremap <silent> <leader>hp :call clearmatches() \| let g:poppy = -get(g:,'poppy',-1) \|
|
||||
\ exe 'au! Poppy CursorMoved *' . (g:poppy > 0 ? ' call PoppyInit()' : '') <cr>
|
||||
```
|
||||
|
||||
modify coloring by changing `g:poppyhigh`, which is a list of highlight group names.
|
||||
|
||||
If you want only 1 paren level highlighted, let `g:poppyhigh` to a list with 1 group name.
|
||||
|
||||
If you want the highlighting to include matches which are under the cursor, like the matchparen plugin
|
||||
included with vim, `let g:poppy_point_enable = 1` .
|
||||
Reference in New Issue
Block a user