Skip to content

Commit 52b8c0e

Browse files
rottencandymartskins
authored andcommitted
fix markdown syntax for vim (autozimu#1155)
1 parent 3007b07 commit 52b8c0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/LanguageClient.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ function! s:OpenHoverPreview(bufname, lines, filetype, ...) abort
551551
let pop_win_id = popup_atcursor(a:lines, { 'padding': l:padding })
552552
endif
553553
call setbufvar(winbufnr(pop_win_id), '&filetype', a:filetype)
554+
" trigger refresh on plasticboy/vim-markdown
555+
call win_execute(pop_win_id, 'doautocmd InsertLeave')
554556
elseif display_approach ==# 'preview'
555557
execute 'silent! noswapfile pedit!' a:bufname
556558
wincmd P

0 commit comments

Comments
 (0)