Skip to content

editorconfig cooperation/support? #9

@nogweii

Description

@nogweii

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions