Fix #3616, #3903 - Use proper floating window borders in neovim (#4417)

* Fix #3616, #3903 - Use proper floating window borders in neovim

* Compatibility w. length 6/7 ale_floating_window_border values
This commit is contained in:
Oskar Haarklou Veileborg
2023-02-21 10:25:10 +01:00
committed by GitHub
parent c3f9bccb8c
commit c8e9146049
2 changed files with 18 additions and 34 deletions

View File

@@ -1252,10 +1252,12 @@ g:ale_floating_preview_popup_opts *g:ale_floating_preview_popup_opts*
For example, to enhance popups with a title: >
function! CustomOpts() abort {
function! CustomOpts() abort
let [l:info, l:loc] = ale#util#FindItemAtCursor(bufnr(''))
return {'title': ' ALE: ' . (l:loc.linter_name) . ' '}
endfunction
let g:ale_floating_preview_popup_opts = 'g:CustomOpts'
<