Skip to content

Commit

Permalink
Merge pull request #623 from kkoomen/feature/handle-ftplugin-disabled
Browse files Browse the repository at this point in the history
handle case when ftplugin is disabled
  • Loading branch information
kkoomen authored Sep 19, 2023
2 parents cde2e2e + 2056efd commit 1f2d247
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoload/doge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ endfunction
"
" arg: Either a count (0 by default) or a string (empty by default).
function! doge#generate(arg) abort
if !exists('b:doge_supported_doc_standards')
echoerr '[vim-doge] It seems like you forgot to set `filetype plugin on` in your .vimrc'
return 1
endif

" Immediately validate if the doc standard is allowed.
if index(b:doge_supported_doc_standards, b:doge_doc_standard) < 0
echoerr printf(
Expand Down

0 comments on commit 1f2d247

Please sign in to comment.