mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-24 09:18:42 +08:00
Implement Lua ALE setup & overhaul documentation
1. Add ale.setup and ale.setup.buffer for pure Lua configuration. 2. Update many global settings to use Booleans instead of numbers to make types easiert to work with in Lua. 3. Radically reformat documentation and fix errors to make documentation more usable for Neovim users.
This commit is contained in:
+48
-12
@@ -5,15 +5,21 @@ ALE Nix Integration *ale-nix-options*
|
||||
===============================================================================
|
||||
alejandra *ale-nix-alejandra*
|
||||
|
||||
g:ale_nix_alejandra_executable *g:ale_nix_alejandra_executable*
|
||||
*ale-options.nix_alejandra_executable*
|
||||
*g:ale_nix_alejandra_executable*
|
||||
*b:ale_nix_alejandra_executable*
|
||||
nix_alejandra_executable
|
||||
g:ale_nix_alejandra_executable
|
||||
Type: |String|
|
||||
Default: `'alejandra'`
|
||||
|
||||
This variable sets the executable used for alejandra.
|
||||
|
||||
g:ale_nix_alejandra_options *g:ale_nix_alejandra_options*
|
||||
*ale-options.nix_alejandra_options*
|
||||
*g:ale_nix_alejandra_options*
|
||||
*b:ale_nix_alejandra_options*
|
||||
nix_alejandra_options
|
||||
g:ale_nix_alejandra_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
@@ -23,15 +29,21 @@ g:ale_nix_alejandra_options *g:ale_nix_alejandra_options*
|
||||
===============================================================================
|
||||
nixfmt *ale-nix-nixfmt*
|
||||
|
||||
g:ale_nix_nixfmt_executable *g:ale_nix_nixfmt_executable*
|
||||
*ale-options.nix_nixfmt_executable*
|
||||
*g:ale_nix_nixfmt_executable*
|
||||
*b:ale_nix_nixfmt_executable*
|
||||
nix_nixfmt_executable
|
||||
g:ale_nix_nixfmt_executable
|
||||
Type: |String|
|
||||
Default: `'nixfmt'`
|
||||
|
||||
This variable sets the executable used for nixfmt.
|
||||
|
||||
g:ale_nix_nixfmt_options *g:ale_nix_nixfmt_options*
|
||||
*ale-options.nix_nixfmt_options*
|
||||
*g:ale_nix_nixfmt_options*
|
||||
*b:ale_nix_nixfmt_options*
|
||||
nix_nixfmt_options
|
||||
g:ale_nix_nixfmt_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
@@ -41,15 +53,21 @@ g:ale_nix_nixfmt_options *g:ale_nix_nixfmt_options*
|
||||
===============================================================================
|
||||
nixpkgs-fmt *ale-nix-nixpkgs-fmt*
|
||||
|
||||
g:ale_nix_nixpkgsfmt_executable *g:ale_nix_nixpkgsfmt_executable*
|
||||
*ale-options.nix_nixpkgsfmt_executable*
|
||||
*g:ale_nix_nixpkgsfmt_executable*
|
||||
*b:ale_nix_nixpkgsfmt_executable*
|
||||
nix_nixpkgsfmt_executable
|
||||
g:ale_nix_nixpkgsfmt_executable
|
||||
Type: |String|
|
||||
Default: `'nixpkgs-fmt'`
|
||||
|
||||
This variable sets executable used for nixpkgs-fmt.
|
||||
|
||||
g:ale_nix_nixpkgsfmt_options *g:ale_nix_nixpkgsfmt_options*
|
||||
*ale-options.nix_nixpkgsfmt_options*
|
||||
*g:ale_nix_nixpkgsfmt_options*
|
||||
*b:ale_nix_nixpkgsfmt_options*
|
||||
nix_nixpkgsfmt_options
|
||||
g:ale_nix_nixpkgsfmt_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
@@ -60,32 +78,44 @@ g:ale_nix_nixpkgsfmt_options *g:ale_nix_nixpkgsfmt_options*
|
||||
===============================================================================
|
||||
statix *ale-nix-statix*
|
||||
|
||||
g:ale_nix_statix_check_executable *g:ale_nix_statix_check_executable*
|
||||
*ale-options.nix_statix_check_executable*
|
||||
*g:ale_nix_statix_check_executable*
|
||||
*b:ale_nix_statix_check_executable*
|
||||
nix_statix_check_executable
|
||||
g:ale_nix_statix_check_executable
|
||||
Type: |String|
|
||||
Default: `'statix'`
|
||||
|
||||
This variable sets the executable used for statix when running it as a
|
||||
linter.
|
||||
|
||||
g:ale_nix_statix_check_options *g:ale_nix_statix_check_options*
|
||||
*ale-options.nix_statix_check_options*
|
||||
*g:ale_nix_statix_check_options*
|
||||
*b:ale_nix_statix_check_options*
|
||||
nix_statix_check_options
|
||||
g:ale_nix_statix_check_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
This variable can be used to pass additional options to statix when running
|
||||
it as a linter.
|
||||
|
||||
g:ale_nix_statix_fix_executable *g:ale_nix_fix_check_executable*
|
||||
*ale-options.nix_statix_fix_executable*
|
||||
*g:ale_nix_statix_fix_executable*
|
||||
*b:ale_nix_fix_check_executable*
|
||||
nix_statix_fix_executable
|
||||
g:ale_nix_statix_fix_executable
|
||||
Type: |String|
|
||||
Default: `'statix'`
|
||||
|
||||
This variable sets the executable used for statix when running it as a
|
||||
fixer.
|
||||
|
||||
g:ale_nix_statix_fix_options *g:ale_nix_statix_fix_options*
|
||||
*ale-options.nix_statix_fix_options*
|
||||
*g:ale_nix_statix_fix_options*
|
||||
*b:ale_nix_statix_fix_options*
|
||||
nix_statix_fix_options
|
||||
g:ale_nix_statix_fix_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
@@ -96,15 +126,21 @@ g:ale_nix_statix_fix_options *g:ale_nix_statix_fix_options*
|
||||
===============================================================================
|
||||
deadnix *ale-nix-deadnix*
|
||||
|
||||
g:ale_nix_deadnix_executable *g:ale_nix_deadnix_executable*
|
||||
*ale-options.nix_deadnix_executable*
|
||||
*g:ale_nix_deadnix_executable*
|
||||
*b:ale_nix_deadnix_executable*
|
||||
nix_deadnix_executable
|
||||
g:ale_nix_deadnix_executable
|
||||
Type: |String|
|
||||
Default: `'deadnix'`
|
||||
|
||||
This variable sets the executable used for deadnix.
|
||||
|
||||
g:ale_nix_deadnix_options *g:ale_nix_deadnix_options*
|
||||
*ale-options.nix_deadnix_options*
|
||||
*g:ale_nix_deadnix_options*
|
||||
*b:ale_nix_deadnix_options*
|
||||
nix_deadnix_options
|
||||
g:ale_nix_deadnix_options
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user