mhinz / mhinz/vim-mix-format

Changing g:mix_format_on_save on the fly

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

Description

Hi, thank you very much for the plugin, it is much faster then what I was doing before.

I have a quick question though... It is not possible to change `g:mix_format_on_save` dynamically, right? For example if I want to avoid to auto formatting an specific file while still working in a single vim session that uses auto format for other buffers, manually doing `let g:mix_forma_on_save=0` will not prevent the file to be changed by the plugin, right?

By looking at the code it seems that the `augroup` is set when the plugin is loaded and then not touched anymore...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the plugin's setup around the `g:mix_format_on_save` option and its `augroup`, as referenced in the issue. Determine how formatting is triggered for each buffer and define done as allowing the option to be changed during a Vim session so selected files can opt out while others continue formatting.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.