diff options
author | Devin J. Pohly <djpohly+github@gmail.com> | 2022-05-26 23:41:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 13:41:06 +0900 |
commit | ae44f0560031d4e7c1c806247efb8797cb54dc0e (patch) | |
tree | ec276ca669e782be680721234d55a1ab57d4f1ac /plugin | |
parent | 3d7b3a654160c41c628097e1aaf8f2af8fb15756 (diff) | |
download | ale-ae44f0560031d4e7c1c806247efb8797cb54dc0e.zip |
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
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 8d829ddf..12373e11 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -152,10 +152,11 @@ let g:ale_hover_to_floating_preview = get(g:, 'ale_hover_to_floating_preview', 0 " Detail uses floating windows in Neovim let g:ale_detail_to_floating_preview = get(g:, 'ale_detail_to_floating_preview', 0) -" Border setting for floating preview windows in Neovim -" The element in the list presents - horizontal, top, top-left, top-right, -" bottom-right and bottom-left -let g:ale_floating_window_border = get(g:, 'ale_floating_window_border', ['|', '-', '+', '+', '+', '+']) +" Border setting for floating preview windows +" The elements in the list set the characters for the left, top, top-left, +" top-right, bottom-right, bottom-left, right, and bottom of the border +" respectively +let g:ale_floating_window_border = get(g:, 'ale_floating_window_border', ['|', '-', '+', '+', '+', '+', '|', '-']) " This flag can be set to 0 to disable warnings for trailing whitespace let g:ale_warn_about_trailing_whitespace = get(g:, 'ale_warn_about_trailing_whitespace', 1) |