Skip to content

Commit bb163c9

Browse files
committed
lint
1 parent 47f9f27 commit bb163c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autoload/lsp/ui/vim/output.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function! lsp#ui#vim#output#closepreview() abort
1111
autocmd! lsp_float_preview_close CursorMoved,CursorMovedI,VimResized *
1212
endfunction
1313

14-
function! s:get_float_positioning(height, width)
14+
function! s:get_float_positioning(height, width) abort
1515
let l:height = a:height
1616
let l:width = a:width
1717
" For a start show it below/above the cursor
@@ -31,7 +31,7 @@ function! s:get_float_positioning(height, width)
3131
let l:height = &lines -l:y
3232
endif
3333
endif
34-
let l:col = col(".")
34+
let l:col = col('.')
3535
" Positioning is not window but screen relative
3636
let l:opts = {
3737
\ 'relative': 'win',
@@ -48,13 +48,13 @@ function! lsp#ui#vim#output#floatingpreview(data) abort
4848
call setbufvar(l:buf, '&signcolumn', 'no')
4949

5050
" Try to get as much pace right-bolow the cursor, but at least 10x10
51-
let l:width = max([float2nr(&columns - col(".") - 10), 10])
51+
let l:width = max([float2nr(&columns - col('.') - 10), 10])
5252
let l:height = max([&lines - winline() + 1, 10])
5353

5454
let l:opts = s:get_float_positioning(l:height, l:width)
5555

5656
let s:win = nvim_open_win(buf, v:true, l:opts)
57-
call nvim_win_set_option(s:win, 'winhl', "Normal:Pmenu,NormalNC:Pmenu")
57+
call nvim_win_set_option(s:win, 'winhl', 'Normal:Pmenu,NormalNC:Pmenu')
5858
call nvim_win_set_option(s:win, 'foldenable', v:false)
5959
call nvim_win_set_option(s:win, 'wrap', v:true)
6060
call nvim_win_set_option(s:win, 'statusline', '')
@@ -87,7 +87,7 @@ function! lsp#ui#vim#output#preview(data) abort
8787

8888
let &l:filetype = l:ft . '.lsp-hover'
8989
" Get size information while still having the buffer active
90-
let l:bufferlines = line("$")
90+
let l:bufferlines = line('$')
9191
let l:maxwidth = max(map(getline(1, '$'), 'strdisplaywidth(v:val)'))
9292

9393
if g:lsp_preview_keep_focus

0 commit comments

Comments
 (0)