editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.13k stars 137 forks source link

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

Closed dbarnett closed 3 years ago

dbarnett commented 4 years ago

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 commented 4 years ago

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

dbarnett commented 3 years ago

Thanks, I rebased and made the changes you suggested.