From: Yegappan Lakshmanan Date: Tue, 4 Jul 2023 14:24:49 +0000 (-0700) Subject: Use the current encoding for the completion popup menu. Fixes #352 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3dee86b2790634b0f5210f622e7bdd68e06a8ff6;p=vim-lsp.git Use the current encoding for the completion popup menu. Fixes #352 --- diff --git a/ftplugin/lspgfm.vim b/ftplugin/lspgfm.vim index 14f46d1..73dfba8 100644 --- a/ftplugin/lspgfm.vim +++ b/ftplugin/lspgfm.vim @@ -16,7 +16,7 @@ endtry b:lsp_syntax = document.syntax md.list_pattern->setbufvar(bnr, '&formatlistpat') -var settings = 'encoding=utf-8 linebreak breakindent breakindentopt=list:-1' +var settings = 'linebreak breakindent breakindentopt=list:-1' win_execute(popup_id, $'setlocal {settings}') popup_id->popup_settext(document.content)