Skip to content

Commit 9e9c697

Browse files
committed
lint
1 parent de7a592 commit 9e9c697

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

autoload/lsp/ui/vim/output.vim

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

14-
function! s:bufwidth()
14+
function! s:bufwidth() abort
1515
let width = winwidth(0)
1616
let numberwidth = max([&numberwidth, strlen(line('$'))+1])
1717
let numwidth = (&number || &relativenumber)? numberwidth : 0
1818
let foldwidth = &foldcolumn
1919

20-
if &signcolumn == 'yes'
20+
if &signcolumn ==? 'yes'
2121
let signwidth = 2
22-
elseif &signcolumn == 'auto'
22+
elseif &signcolumn ==? 'auto'
2323
let signs = execute(printf('sign place buffer=%d', bufnr('')))
2424
let signs = split(signs, "\n")
2525
let signwidth = len(signs)>2? 2: 0
@@ -63,7 +63,7 @@ function! s:get_float_positioning(height, width) abort
6363
endfunction
6464

6565
function! lsp#ui#vim#output#floatingpreview(data) abort
66-
if has("nvim")
66+
if has('nvim')
6767
let l:buf = nvim_create_buf(v:false, v:true)
6868
call setbufvar(l:buf, '&signcolumn', 'no')
6969

@@ -93,9 +93,8 @@ function! lsp#ui#vim#output#floatingpreview(data) abort
9393
endfunction
9494

9595
function! s:setcontent(lines, ft) abort
96-
if s:supports_floating && g:lsp_preview_float && !has("nvim")
96+
if s:supports_floating && g:lsp_preview_float && !has('nvim')
9797
" vim popup
98-
echom "Vimp Popup SetContent"
9998
call setbufline(winbufnr(s:win), 1, a:lines)
10099
call win_execute(s:win, 'setlocal filetype=' . a:ft . '.lsp-hover')
101100
else
@@ -107,7 +106,7 @@ function! s:setcontent(lines, ft) abort
107106
endfunction
108107

109108
function! s:adjust_float_placement(bufferlines, maxwidth) abort
110-
if has("nvim")
109+
if has('nvim')
111110
let l:win_config = {}
112111
let l:height = min([winheight(s:win), a:bufferlines])
113112
let l:width = min([winwidth(s:win), a:maxwidth])
@@ -151,7 +150,7 @@ function! lsp#ui#vim#output#preview(data) abort
151150

152151
echo ''
153152

154-
if s:supports_floating && s:win && g:lsp_preview_float && has("nvim")
153+
if s:supports_floating && s:win && g:lsp_preview_float && has('nvim')
155154
call s:adjust_float_placement(l:bufferlines, l:maxwidth)
156155
call s:add_float_closing_hooks()
157156
endif

0 commit comments

Comments
 (0)