mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Return floating_preview window id (#4828)
Make ale#floating_preview#Show more similar to popup_create and return the id of the window so it's easy to set the filetype of the resulting buffer. Update test stub version of Show() to return a win id (the current window since it's not actually creating a window). Test * both tests still pass
This commit is contained in:
@@ -25,6 +25,7 @@ Before:
|
||||
function! ale#floating_preview#Show(lines, ...) abort
|
||||
let g:floating_preview_show_called = 1
|
||||
let g:floated_lines = a:lines
|
||||
return win_getid()
|
||||
endfunction
|
||||
|
||||
function! ale#lsp_linter#StartLSP(buffer, linter, callback) abort
|
||||
|
||||
Reference in New Issue
Block a user