Add erlang-mode fixer for Erlang files (#4848)
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--neovim-06-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled

This fixer performs indentation with the Erlang mode for Emacs.
The Erlang mode is maintained in the Erlang/OTP source tree.  It indents
some things differently than the Vim indent plugin, and provides more
customization options.
This commit is contained in:
Dmitri Vereshchagin
2024-10-31 15:29:59 +03:00
committed by GitHub
parent d82d968f8a
commit 4fca3824cc
7 changed files with 178 additions and 0 deletions
+51
View File
@@ -51,6 +51,57 @@ g:ale_erlang_elvis_executable *g:ale_erlang_elvis_executable*
This variable can be changed to specify the elvis executable.
-------------------------------------------------------------------------------
erlang-mode *ale-erlang-erlang-mode*
g:ale_erlang_erlang_mode_emacs_executable
*g:ale_erlang_erlang_mode_emacs_executable*
*b:ale_erlang_erlang_mode_emacs_executable*
Type: |String|
Default: `'emacs'`
This variable can be changed to specify the Emacs executable.
g:ale_erlang_erlang_mode_indent_level *g:ale_erlang_erlang_mode_indent_level*
*b:ale_erlang_erlang_mode_indent_level*
Type: |Number|
Default: `4`
Indentation of Erlang calls/clauses within blocks.
g:ale_erlang_erlang_mode_icr_indent *g:ale_erlang_erlang_mode_icr_indent*
*b:ale_erlang_erlang_mode_icr_indent*
Type: `'nil'` or |Number|
Default: `'nil'`
Indentation of Erlang if/case/receive patterns. `'nil'` means keeping default
behavior. When non-`'nil'`, indent to the column of if/case/receive.
g:ale_erlang_erlang_mode_indent_guard *g:ale_erlang_erlang_mode_indent_guard*
*b:ale_erlang_erlang_mode_indent_guard*
Type: |Number|
Default: `2`
Indentation of Erlang guards.
g:ale_erlang_erlang_mode_argument_indent
*g:ale_erlang_erlang_mode_argument_indent*
*b:ale_erlang_erlang_mode_argument_indent*
Type: `'nil'` or |Number|
Default: `2`
Indentation of the first argument in a function call. When `'nil'`, indent
to the column after the `'('` of the function.
g:ale_erlang_erlang_mode_indent_tabs_mode
*g:ale_erlang_erlang_mode_indent_tabs_mode*
*b:ale_erlang_erlang_mode_indent_tabs_mode*
Type: `'nil'` or `'t'`
Default: `'nil'`
Indentation can insert tabs if this is non-`'nil'`.
-------------------------------------------------------------------------------
erlang_ls *ale-erlang-erlang_ls*