mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-09 09:50:26 +00:00
[vim] Add 'none' option for popup border
This commit is contained in:
parent
2e8e63fb0b
commit
e73383fbbb
@ -300,7 +300,7 @@ following options are allowed:
|
|||||||
- `xoffset` [float default 0.5 range [0 ~ 1]]
|
- `xoffset` [float default 0.5 range [0 ~ 1]]
|
||||||
- `highlight` [string default `'Comment'`]: Highlight group for border
|
- `highlight` [string default `'Comment'`]: Highlight group for border
|
||||||
- `border` [string default `rounded`]: Border style
|
- `border` [string default `rounded`]: Border style
|
||||||
- `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right`
|
- `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `none`
|
||||||
|
|
||||||
`fzf#wrap`
|
`fzf#wrap`
|
||||||
----------
|
----------
|
||||||
|
@ -667,6 +667,9 @@ function! s:border_opt(window)
|
|||||||
if !has_key(a:window, 'border') && !get(a:window, 'rounded', 1)
|
if !has_key(a:window, 'border') && !get(a:window, 'rounded', 1)
|
||||||
let style = 'sharp'
|
let style = 'sharp'
|
||||||
endif
|
endif
|
||||||
|
if style == 'none'
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
|
||||||
let opt = ' --border=' . style
|
let opt = ' --border=' . style
|
||||||
if has_key(a:window, 'highlight')
|
if has_key(a:window, 'highlight')
|
||||||
|
Loading…
Reference in New Issue
Block a user