From f80c0d831c757875e0619b5fd74e5c2bb9348638 Mon Sep 17 00:00:00 2001 From: Shinya Ohyanagi Date: Sun, 5 Dec 2021 00:31:27 +0900 Subject: [PATCH] Add more friendly message if syntax file failed to apply (#14) * Add more friendly message if syntax file failed to apply * Fix show message to use g:markdown_fenced_languages instead --- autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim b/autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim index d66f5b6..68486d3 100644 --- a/autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim +++ b/autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim @@ -65,7 +65,7 @@ function! s:apply(...) abort \ l:filetype_group \ ) catch /.*/ - unsilent echomsg string({ 'exception': v:exception, 'throwpoint': v:throwpoint }) + unsilent echomsg printf('Fail to apply "syntax/%s.vim". Add "let g:markdown_fenced_languages = ["%s=$FILETYPE"]" to enable syntax', l:filetype, l:filetype) endtry endfor endfunction