Skip to content
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

Conditionally define variables b:editorconfig_invoked and b:editorconfig_had_config #142

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

dbarnett
Copy link
Contributor

These can be used to introspect whether editorconfig hooks have run for a buffer
and whether they had any config to apply in order to make downstream heuristic
decisions such as whether to invoke vim-sleuth to guess buffer settings.

Resolves #141.

@cxw42
Copy link
Member

cxw42 commented Mar 30, 2020

Thanks again for this PR! I'd like to finish off #143, then look at this new feature.

Copy link
Member

@cxw42 cxw42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long delay! This seems reasonable to me. Would you please take a look at my comments and let me know your thoughts? Thank you!

plugin/editorconfig.vim Outdated Show resolved Hide resolved
plugin/editorconfig.vim Outdated Show resolved Hide resolved
@dbarnett
Copy link
Contributor Author

dbarnett commented Apr 2, 2021

Thanks, I rebased and made the changes you suggested.

…g_applied

These can be used to introspect whether editorconfig hooks have run for a buffer
and whether they had any config to apply in order to make downstream heuristic
decisions such as whether to invoke vim-sleuth to guess buffer settings.

Resolves editorconfig#141.
Copy link
Member

@cxw42 cxw42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me!

  • I squashed your commits into one and adjusted the commit message. I prefer contributors amend commits in response to feedback, rather than adding additional commits. The idea is to make the project's history include only the results of the review, not the process of the review.
  • One minor code change.

Thanks very much for your contribution! Please feel free to take a look at the issues list to see if there are any other things you might want to fix ;) . Happy Vimming!

plugin/editorconfig.vim Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider defining a b: variable to indicate settings were loaded from config
2 participants