From 9d272111d7db136b0b9452d478214b23f049d9b4 Mon Sep 17 00:00:00 2001 From: hrsh7th <629908+hrsh7th@users.noreply.github.com> Date: Thu, 6 Oct 2022 14:43:01 +0900 Subject: [PATCH] Fix --- autoload/vital/__vital__/VS/LSP/MarkupContent.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/vital/__vital__/VS/LSP/MarkupContent.vim b/autoload/vital/__vital__/VS/LSP/MarkupContent.vim index 7cf6181..d5b1927 100644 --- a/autoload/vital/__vital__/VS/LSP/MarkupContent.vim +++ b/autoload/vital/__vital__/VS/LSP/MarkupContent.vim @@ -27,7 +27,11 @@ function! s:normalize(markup_content, ...) abort elseif type(a:markup_content) == type({}) let l:normalized = a:markup_content.value if has_key(a:markup_content, 'language') - let l:normalized = '```' . a:markup_content.language . ' ' . l:normalized . ' ```' + let l:normalized = join([ + \ '```' . a:markup_content.language, + \ l:normalized, + \ '```' + \ ], "\n") endif endif let l:normalized = s:Text.normalize_eol(l:normalized)