[vim] Add 'none' option for popup border

This commit is contained in:
Junegunn Choi 2020-10-26 23:40:58 +09:00
parent 2e8e63fb0b
commit e73383fbbb
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 4 additions and 1 deletions

View File

@ -300,7 +300,7 @@ following options are allowed:
- `xoffset` [float default 0.5 range [0 ~ 1]]
- `highlight` [string default `'Comment'`]: Highlight group for border
- `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`
----------

View File

@ -667,6 +667,9 @@ function! s:border_opt(window)
if !has_key(a:window, 'border') && !get(a:window, 'rounded', 1)
let style = 'sharp'
endif
if style == 'none'
return ''
endif
let opt = ' --border=' . style
if has_key(a:window, 'highlight')