Skip to content

Commit

Permalink
Add more friendly message if syntax file failed to apply (#14)
Browse files Browse the repository at this point in the history
* Add more friendly message if syntax file failed to apply

* Fix show message to use g:markdown_fenced_languages instead
  • Loading branch information
heavenshell authored Dec 4, 2021
1 parent 890c77d commit f80c0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vital/__vital__/VS/Vim/Syntax/Markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f80c0d8

Please sign in to comment.