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:
w0rp
2025-03-20 21:33:12 +00:00
parent 53f036fe9f
commit bcd1a12949
146 changed files with 5469 additions and 2642 deletions

View File

@@ -4,18 +4,23 @@ ALE Hack Integration *ale-hack-options*
HHAST is disabled by default, as it executes code in the project root.
Currently linters must be enabled globally. HHAST can be enabled with:
Currently linters must be enabled globally. HHAST can be enabled in ftplugin
files like so: >
>
let g:ale_linters = {'hack': ['hack', 'hhast']}
let b:ale_linters = ['hack', 'hhast']
<
Or in Lua: >
require("ale").setup.buffer({linters = {"hack", "hhast"}})
<
===============================================================================
hack *ale-hack-hack*
g:ale_hack_hack_executable *g:ale_hack_hack_executable*
*ale-options.hack_hack_executable*
*g:ale_hack_hack_executable*
*b:ale_hack_hack_executable*
hack_hack_executable
g:ale_hack_hack_executable
Type: |String|
Default: `'hh_client'`
@@ -26,8 +31,11 @@ g:ale_hack_hack_executable *g:ale_hack_hack_executable*
===============================================================================
hackfmt *ale-hack-hackfmt*
g:ale_hack_hackfmt_options *g:ale_hack_hackfmt_options*
*ale-options.hack_hackfmt_options*
*g:ale_hack_hackfmt_options*
*b:ale_hack_hackfmt_options*
hack_hackfmt_options
g:ale_hack_hackfmt_options
Type: |String|
Default: `''`
@@ -37,9 +45,11 @@ g:ale_hack_hackfmt_options *g:ale_hack_hackfmt_options*
===============================================================================
hhast *ale-hack-hhast*
g:ale_hack_hhast_executable *g:ale_hack_hhast_executable*
*ale-options.hack_hhast_executable*
*g:ale_hack_hhast_executable*
*b:ale_hack_hhast_executable*
hack_hhast_executable
g:ale_hack_hhast_executable
Type: |String|
Default: `'vendor/bin/hhast-lint'`