10000 handle case when ftplugin is disabled by kkoomen · Pull Request #623 · kkoomen/vim-doge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

h 8000 andle case when ftplugin is disabled #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

kkoomen
Copy link
Owner
@kkoomen kkoomen commented Sep 19, 2023

Additional PR for the case as described in #620 where the user might have disabled filetype plugin on. In that case, the ftplugin/<filetype>.vim variables won't exist. We could've picked any of the default variables that are always defined in the ftplugin/<filetype>.vim folder, so I simply took b:doge_supported_doc_standards. If this doesn't exists when doge#generate is executing, then we'll print an error message suggesting that it might be that the user did not set filetype plugin on in their .vimrc.

@kkoomen kkoomen enabled auto-merge September 19, 2023 18:10
@kkoomen kkoomen disabled auto-merge September 19, 2023 18:10
@kkoomen kkoomen merged commit 1f2d247 into master Sep 19, 2023
@kkoomen kkoomen deleted the feature/handle-ftplugin-disabled branch September 19, 2023 18:10
@kkoomen kkoomen mentioned this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0