mhinz / mhinz/vim-mix-format

Add option to support other file types

Open
#42 0 comments 8 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
220
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Would it be possible to add a configuration option that would allow the user to specify other filetypes that this plugin supports?

The elixir formatter now accepts plugins in the `.formatter.exs` file which allows `mix format` to support other file types.

See [this plugin](https://github.com/feliperenan/heex_formatter) for example that adds support for `heex` templates. It would be great if `vim-mix-format` could format these supported file types on save similar to .ex and .exs files.

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the existing handling for .ex and .exs files in vim-mix-format, then compare it with the plugin configuration described in .formatter.exs. Done means users can configure additional types such as heex and have mix format run for them on save.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, vim
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.