{"id":13509822,"url":"https://github.com/mhinz/vim-mix-format","last_synced_at":"2025-04-09T23:19:37.084Z","repository":{"id":26633624,"uuid":"108899526","full_name":"mhinz/vim-mix-format","owner":"mhinz","description":"Vim integration for the Elixir formatter.","archived":false,"fork":false,"pushed_at":"2023-06-23T09:19:31.000Z","size":126,"stargazers_count":222,"open_issues_count":9,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T16:44:04.699Z","etag":null,"topics":["elixir","elixir-lang","neovim","vim","vimrc"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhinz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-30T19:36:45.000Z","updated_at":"2025-01-13T03:05:42.000Z","dependencies_parsed_at":"2024-01-05T22:00:10.314Z","dependency_job_id":"67365e3d-54ab-453a-9160-77dc89153a06","html_url":"https://github.com/mhinz/vim-mix-format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-mix-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-mix-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-mix-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-mix-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhinz","download_url":"https://codeload.github.com/mhinz/vim-mix-format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125870,"owners_count":21051816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","elixir-lang","neovim","vim","vimrc"],"created_at":"2024-08-01T02:01:13.795Z","updated_at":"2025-04-09T23:19:37.064Z","avatar_url":"https://github.com/mhinz.png","language":"Vim script","readme":"# vim-mix-format\n\nElixir 1.6 introduced the formatter: `mix format`. This plugin makes it easy to\nrun the formatter asynchronously from within Vim 8 and Neovim.\n\n![demo](demo.gif)\n\n## Installation\n\nUse your [favorite plugin manager](https://github.com/mhinz/vim-galore#managing-plugins), e.g.\n[vim-plug](https://github.com/junegunn/vim-plug):\n\n    Plug 'mhinz/vim-mix-format'\n\n## Commands\n\n* To format the current file, use `:MixFormat`. Use `:verb MixFormat` to see the\n  exact shell command used.\n\n* The formatter is not perfect yet, so `:MixFormatDiff` will open a diff window\n  that can be used for previewing the changes or picking only those that seem\n  reasonable.\n\n  `dp` pushes changes from the diff window to the source file. `q` closes the diff\n  window. `]c` and `[c` jump between the changes.\n\n  If you're not used to Vim's diff mode, [watch this\n  screencast](http://vimcasts.org/episodes/comparing-buffers-with-vimdiff).\n\n## Options\n\n* Automatically format on saving.\n\n  ```vim\n  let g:mix_format_on_save = 1\n  ```\n\n* Set options for the formatter. See `mix help format` in the shell.\n\n  ```vim\n  let g:mix_format_options = '--check-equivalent'\n  ```\n\n* By default this plugin opens a window containing the stacktrace on errors.\n  With this option enabled, there will be just a short message in the\n  command-line bar. The stacktrace can still be looked up via `:messages`.\n\n  ```vim\n  let g:mix_format_silent_errors = 1\n  ```\n\n* If you're not using Elixir 1.6 in your project, but want to use the formatter\n  anyway, you can specify the bin directory of an alternative Elixir installation:\n\n  ```vim\n  let g:mix_format_elixir_bin_path = '~/repo/elixir/bin'\n  ```\n\n## Customization\n\nWhen using `:MixFormatDiff`, a new diff window will be opened and an user event\nis emitted. It can be used to set different settings or switch back to the\nsource window:\n\n```vim\nautocmd User MixFormatDiff wincmd p\n```\n\n## Feedback\n\nIf you like this plugin, star it! It helps me deciding which projects to spend\nmore time on.\n","funding_links":[],"categories":["Editors"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-mix-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhinz%2Fvim-mix-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-mix-format/lists"}