mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-17 13:17:57 +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:
+47
-19
@@ -5,96 +5,124 @@ ALE Elm Integration *ale-elm-options*
|
||||
===============================================================================
|
||||
elm-format *ale-elm-elm-format*
|
||||
|
||||
g:ale_elm_format_executable *g:ale_elm_format_executable*
|
||||
*ale-options.elm_format_executable*
|
||||
*g:ale_elm_format_executable*
|
||||
*b:ale_elm_format_executable*
|
||||
elm_format_executable
|
||||
g:ale_elm_format_executable
|
||||
Type: |String|
|
||||
Default: `'elm-format'`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_format_use_global *g:ale_elm_format_use_global*
|
||||
*ale-options.elm_format_use_global*
|
||||
*g:ale_elm_format_use_global*
|
||||
*b:ale_elm_format_use_global*
|
||||
elm_format_use_global
|
||||
g:ale_elm_format_use_global
|
||||
Type: |Number|
|
||||
Default: `get(g:, 'ale_use_global_executables', 0)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_format_options *g:ale_elm_format_options*
|
||||
*ale-options.elm_format_options*
|
||||
*g:ale_elm_format_options*
|
||||
*b:ale_elm_format_options*
|
||||
elm_format_options
|
||||
g:ale_elm_format_options
|
||||
Type: |String|
|
||||
Default: `'--yes'`
|
||||
|
||||
This variable can be set to pass additional options to elm-format.
|
||||
|
||||
|
||||
===============================================================================
|
||||
elm-ls *ale-elm-elm-ls*
|
||||
|
||||
g:ale_elm_ls_executable *g:ale_elm_ls_executable*
|
||||
*ale-options.elm_ls_executable*
|
||||
*g:ale_elm_ls_executable*
|
||||
*b:ale_elm_ls_executable*
|
||||
elm_ls_executable
|
||||
g:ale_elm_ls_executable
|
||||
Type: |String|
|
||||
Default: `'elm-language-server'`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_ls_use_global *g:ale_elm_ls_use_global*
|
||||
*ale-options.elm_ls_use_global*
|
||||
*g:ale_elm_ls_use_global*
|
||||
*b:ale_elm_ls_use_global*
|
||||
elm_ls_use_global
|
||||
g:ale_elm_ls_use_global
|
||||
Type: |Number|
|
||||
Default: `get(g:, 'ale_use_global_executables', 1)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_ls_elm_path *g:ale_elm_ls_elm_path*
|
||||
*ale-options.elm_ls_elm_path*
|
||||
*g:ale_elm_ls_elm_path*
|
||||
*b:ale_elm_ls_elm_path*
|
||||
elm_ls_elm_path
|
||||
g:ale_elm_ls_elm_path
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_ls_elm_format_path *g:ale_elm_ls_elm_format_path*
|
||||
*ale-options.elm_ls_elm_format_path*
|
||||
*g:ale_elm_ls_elm_format_path*
|
||||
*b:ale_elm_ls_elm_format_path*
|
||||
elm_ls_elm_format_path
|
||||
g:ale_elm_ls_elm_format_path
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_ls_elm_test_path *g:ale_elm_ls_elm_test_path*
|
||||
*ale-options.elm_ls_elm_test_path*
|
||||
*g:ale_elm_ls_elm_test_path*
|
||||
*b:ale_elm_ls_elm_test_path*
|
||||
elm_ls_elm_test_path
|
||||
g:ale_elm_ls_elm_test_path
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_ls_elm_analyse_trigger *g:ale_elm_ls_elm_analyse_trigger*
|
||||
*ale-options.elm_ls_elm_analyse_trigger*
|
||||
*g:ale_elm_ls_elm_analyse_trigger*
|
||||
*b:ale_elm_ls_elm_analyse_trigger*
|
||||
elm_ls_elm_analyse_trigger
|
||||
g:ale_elm_ls_elm_analyse_trigger
|
||||
Type: |String|
|
||||
Default: `'change'`
|
||||
|
||||
One of 'change', 'save' or 'never'
|
||||
|
||||
|
||||
===============================================================================
|
||||
elm-make *ale-elm-elm-make*
|
||||
|
||||
g:ale_elm_make_executable *g:ale_elm_make_executable*
|
||||
*ale-options.elm_make_executable*
|
||||
*g:ale_elm_make_executable*
|
||||
*b:ale_elm_make_executable*
|
||||
elm_make_executable
|
||||
g:ale_elm_make_executable
|
||||
Type: |String|
|
||||
Default: `'elm'`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
g:ale_elm_make_use_global *g:ale_elm_make_use_global*
|
||||
*ale-options.elm_make_use_global*
|
||||
*g:ale_elm_make_use_global*
|
||||
*b:ale_elm_make_use_global*
|
||||
elm_make_use_global
|
||||
g:ale_elm_make_use_global
|
||||
Type: |Number|
|
||||
Default: `get(g:, 'ale_use_global_executables', 0)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
===============================================================================
|
||||
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|
||||
|
||||
Reference in New Issue
Block a user