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

editorconfig cooperation/support? #9

Open
nogweii opened this issue Apr 18, 2021 · 0 comments
Open

editorconfig cooperation/support? #9

nogweii opened this issue Apr 18, 2021 · 0 comments

Comments

@nogweii
Copy link

nogweii commented Apr 18, 2021

I'm not entirely sure what this approach would look like, but here goes:

It'd be very cool if yaifa could read the editorconfig file and derive the indentation settings from that. Or instead of reading it directly, using a "core" external program.

There is the editorconfig.vim plugin which provides this functionality. However installing both plugins results in conflicting settings when a file doesn't conform to what's in the editorconfig file. Maybe it has enough of an API to support direct integration?

So I figure something like this:

  • Indentation settings set from editorconfig take priority
  • Any settings that aren't set, use the heuristics from this plugin to fill in the gaps
  • Modelines fit into this somehow (always win?)
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

No branches or pull requests

1 participant