Allow for disabling auto-formatting with a global or buffer-local
variable, based on
62eba813b7/doc/recipes.md (autoformat-with-extra-features).
In the future, it would be interesting to do this based on the presence
of a file in the repository, such as `.do-not-auto-format`.
I've replaced it with edit_alternate.vim in the previous commit, which
works with `.twig` and `.config.yml` files in Fractal projects as well
as test classes in Drupal, which is all I need alternate files for at
the moment.
https://github.com/tjdevries/edit_alternate.vim
This works for switching between classes and tests in Drupal modules,
which is something I was struggling to do with Projectionist.
Different to Projectionist, though, this plugin doesn't create an
alternate file if it doesn't exist, and doesn't prompt to select from
multiple options and returns the first matching one.
From the README file:
```lua
-- Whether to set Vim's settings for statusline (make it always shown
-- with 'laststatus' set to 2).
-- To use global statusline, set this to `false` and 'laststatus' to 3.
set_vim_settings = true,
```
> Automatically causes vim to reload files which have been written on
disk but not modified in the buffer since the last write from vim. This
enables a file open in vim to be edited using another application and
saved. Upon returning to vim, as long as you haven't modified the file
since the last change, the file will be automatically updated to reflect
the changes made on disk, as though you had pressed :e manually.
https://github.com/djoshea/vim-autoread