Allow customization of all floating window borders (#4215)

* Allow customization of all floating window borders

Users may not necessarily want the same border character for top+bottom
or left+right, so allow all eight border characters to be configured in
g:ale_floating_window_border.

For backwards compatibility, the old rules are still applied if only six
elements are given.

* Reorder popup border array for compatibility
This commit is contained in:
Devin J. Pohly
2022-05-26 23:41:06 -05:00
committed by GitHub
parent 3d7b3a6541
commit ae44f05600
4 changed files with 36 additions and 27 deletions

View File

@@ -931,14 +931,14 @@ If the terminal supports Unicode, you might try setting the value like below, to
make it look nicer.
```vim
let g:ale_floating_window_border = ['│', '─', '╭', '╮', '╯', '╰']
let g:ale_floating_window_border = ['│', '─', '╭', '╮', '╯', '╰', '│', '─']
```
Since vim's default uses nice unicode characters when possible, you can trick
ale into using that default with
```vim
let g:ale_floating_window_border = repeat([''], 6)
let g:ale_floating_window_border = repeat([''], 8)
```
<a name="faq-vim-lsp"></a>