Cleanup hover fix on missing filetype (#446)

Also see #442 and #443.
This commit is contained in:
Thomas Faingnaert
2019-07-25 09:10:07 +02:00
committed by GitHub
parent 79d47fea15
commit 67e27494f5

View File

@@ -150,10 +150,7 @@ function! s:setcontent(lines, ft) abort
call setline(1, a:lines)
setlocal readonly nomodifiable
try
let &l:filetype = a:ft . '.lsp-hover'
catch
endtry
silent! let &l:filetype = a:ft . '.lsp-hover'
endif
endfunction