mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Redpen linter previously had hardcoded command-line options and duplicated linter definitions across all supported file types (asciidoc, markdown, review, rst, tex, text). This refactoring centralizes the linter definition and adds support for user-configurable options via g:ale_redpen_options. Key changes: - Created ale#handlers#redpen#DefineLinter() to eliminate code duplication - Added ale#handlers#redpen#GetCommand() to support configurable options - All file types now use shared configuration and command building - Added comprehensive test coverage for option handling - Updated documentation for all affected file types This allows users to customize redpen behavior with additional command-line options while maintaining backward compatibility and reducing maintenance overhead.
122 lines
4.6 KiB
Plaintext
122 lines
4.6 KiB
Plaintext
===============================================================================
|
|
ALE TeX Integration *ale-tex-options*
|
|
|
|
|
|
===============================================================================
|
|
chktex *ale-tex-chktex*
|
|
|
|
*ale-options.tex_chktex_executable*
|
|
*g:ale_tex_chktex_executable*
|
|
*b:ale_tex_chktex_executable*
|
|
tex_chktex_executable
|
|
g:ale_tex_chktex_executable
|
|
Type: |String|
|
|
Default: `'chktex'`
|
|
|
|
This variable can be changed to change the path to chktex.
|
|
|
|
*ale-options.tex_chktex_options*
|
|
*g:ale_tex_chktex_options*
|
|
*b:ale_tex_chktex_options*
|
|
tex_chktex_options
|
|
g:ale_tex_chktex_options
|
|
Type: |String|
|
|
Default: `'-I'`
|
|
|
|
This variable can be changed to modify flags given to chktex.
|
|
|
|
|
|
===============================================================================
|
|
cspell *ale-tex-cspell*
|
|
|
|
See |ale-cspell-options|
|
|
|
|
|
|
===============================================================================
|
|
lacheck *ale-tex-lacheck*
|
|
|
|
*ale-options.lacheck_executable*
|
|
*g:ale_lacheck_executable*
|
|
*b:ale_lacheck_executable*
|
|
lacheck_executable
|
|
g:ale_lacheck_executable
|
|
Type: |String|
|
|
Default: `'lacheck'`
|
|
|
|
This variable can be changed to change the path to lacheck.
|
|
|
|
|
|
===============================================================================
|
|
latexindent *ale-tex-latexindent*
|
|
|
|
*ale-options.tex_latexindent_executable*
|
|
*g:ale_tex_latexindent_executable*
|
|
*b:ale_tex_latexindent_executable*
|
|
tex_latexindent_executable
|
|
g:ale_tex_latexindent_executable
|
|
Type: |String|
|
|
Default: `'latexindent'`
|
|
|
|
This variable can be changed to change the path to latexindent.
|
|
|
|
*ale-options.tex_latexindent_options*
|
|
*g:ale_tex_latexindent_options*
|
|
*b:ale_tex_latexindent_options*
|
|
tex_latexindent_options
|
|
g:ale_tex_latexindent_options
|
|
Type: |String|
|
|
Default: `''`
|
|
|
|
This variable can be changed to modify flags given to latexindent.
|
|
|
|
|
|
===============================================================================
|
|
texlab *ale-tex-texlab*
|
|
|
|
*ale-options.tex_texlab_executable*
|
|
*g:ale_tex_texlab_executable*
|
|
*b:ale_tex_texlab_executable*
|
|
tex_texlab_executable
|
|
g:ale_tex_texlab_executable
|
|
Type: |String|
|
|
Default: `'texlab'`
|
|
|
|
This variable can be changed to change the path to texlab.
|
|
|
|
*ale-options.tex_texlab_options*
|
|
*g:ale_tex_texlab_options*
|
|
*b:ale_tex_texlab_options*
|
|
tex_texlab_options
|
|
g:ale_tex_texlab_options
|
|
Type: |String|
|
|
Default: `''`
|
|
|
|
This variable can be changed to modify flags given to texlab command.
|
|
|
|
*ale-options.tex_texlab_config*
|
|
*g:ale_tex_texlab_config*
|
|
*b:ale_tex_texlab_config*
|
|
tex_texlab_config
|
|
g:ale_tex_texlab_config
|
|
Type: |Dictionary|
|
|
Default: `{}`
|
|
|
|
Dictionary containing LSP configuration settings used to initialize texlab
|
|
language server. Refer to texlab documentation for possible settings:
|
|
|
|
https://github.com/latex-lsp/texlab/blob/master/docs/options.md
|
|
|
|
For example to set build onSave initialization setting: >
|
|
|
|
let g:ale_tex_texlab_config = {"build":{"onSave":v:true}}
|
|
<
|
|
|
|
===============================================================================
|
|
redpen *ale-tex-redpen*
|
|
|
|
See |ale-redpen-options|
|
|
|
|
|
|
===============================================================================
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|