summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt68
1 files changed, 42 insertions, 26 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index efdc2096..580effc7 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1573,6 +1573,22 @@ b:ale_loclist_msg_format *b:ale_loclist_msg_format*
The strings for configuring `%severity%` are also used for this option.
+g:ale_lsp_root *g:ale_lsp_root*
+b:ale_lsp_root *b:ale_lsp_root*
+
+ Type: |Dictionary| or |String|
+ Default: {}
+
+ This option is used to determine the project root for the LSP linter. If the
+ value is a |Dictionary|, it maps a linter to either a string containing the
+ project root or a |Funcref| to call to look up the root. The funcref is
+ provided the buffer number as its argument.
+
+ The buffer-specific variable may additionally be a string containing the
+ project root itself.
+
+ If neither variable yields a result, a linter-specific function is invoked to
+ detect a project root. If this, too, yields no result, the linter is disabled.
g:ale_max_buffer_history_size *g:ale_max_buffer_history_size*
@@ -2599,26 +2615,26 @@ ale#Queue(delay, [linting_flag, buffer_number]) *ale#Queue()*
is broken, or when developing ALE itself.
-ale#engine#CreateDirectory(buffer) *ale#engine#CreateDirectory()*
+ale#command#CreateDirectory(buffer) *ale#command#CreateDirectory()*
Create a new temporary directory with a unique name, and manage that
- directory with |ale#engine#ManageDirectory()|, so it will be removed as soon
+ directory with |ale#command#ManageDirectory()|, so it will be removed as soon
as possible.
It is advised to only call this function from a callback function for
returning a linter command to run.
-ale#engine#CreateFile(buffer) *ale#engine#CreateFile()*
+ale#command#CreateFile(buffer) *ale#command#CreateFile()*
Create a new temporary file with a unique name, and manage that file with
- |ale#engine#ManageFile()|, so it will be removed as soon as possible.
+ |ale#command#ManageFile()|, so it will be removed as soon as possible.
It is advised to only call this function from a callback function for
returning a linter command to run.
-ale#engine#EscapeCommandPart(command_part) *ale#engine#EscapeCommandPart()*
+ale#command#EscapeCommandPart(command_part) *ale#command#EscapeCommandPart()*
Given a |String|, return a |String| with all `%` characters replaced with
`%%` instead. This function can be used to escape strings which are
@@ -2627,23 +2643,7 @@ ale#engine#EscapeCommandPart(command_part) *ale#engine#EscapeCommandPart()*
specially.
-ale#engine#GetLoclist(buffer) *ale#engine#GetLoclist()*
-
- Given a buffer number, this function will return the list of problems
- reported by ALE for a given buffer in the format accepted by |setqflist()|.
-
- A reference to the buffer's list of problems will be returned. The list must
- be copied before applying |map()| or |filter()|.
-
-
-ale#engine#IsCheckingBuffer(buffer) *ale#engine#IsCheckingBuffer()*
-
- Given a buffer number, returns `1` when ALE is busy checking that buffer.
-
- This function can be used for status lines, tab names, etc.
-
-
-ale#engine#ManageFile(buffer, filename) *ale#engine#ManageFile()*
+ale#command#ManageFile(buffer, filename) *ale#command#ManageFile()*
Given a buffer number for a buffer currently running some linting tasks
and a filename, register a filename with ALE for automatic deletion after
@@ -2658,20 +2658,36 @@ ale#engine#ManageFile(buffer, filename) *ale#engine#ManageFile()*
files and symlinks given to this function. This is to prevent entire
directories from being accidentally deleted, say in cases of writing
`dir . '/' . filename` where `filename` is actually `''`, etc. ALE instead
- manages directories separetly with the |ale#engine#ManageDirectory| function.
+ manages directories separetly with the |ale#command#ManageDirectory| function.
-ale#engine#ManageDirectory(buffer, directory) *ale#engine#ManageDirectory()*
+ale#command#ManageDirectory(buffer, directory) *ale#command#ManageDirectory()*
- Like |ale#engine#ManageFile()|, but directories and all of their contents
+ Like |ale#command#ManageFile()|, but directories and all of their contents
will be deleted, akin to `rm -rf directory`, which could lead to loss of
data if mistakes are made. This command will also delete any temporary
filenames given to it.
- It is advised to use |ale#engine#ManageFile()| instead for deleting single
+ It is advised to use |ale#command#ManageFile()| instead for deleting single
files.
+ale#engine#GetLoclist(buffer) *ale#engine#GetLoclist()*
+
+ Given a buffer number, this function will return the list of problems
+ reported by ALE for a given buffer in the format accepted by |setqflist()|.
+
+ A reference to the buffer's list of problems will be returned. The list must
+ be copied before applying |map()| or |filter()|.
+
+
+ale#engine#IsCheckingBuffer(buffer) *ale#engine#IsCheckingBuffer()*
+
+ Given a buffer number, returns `1` when ALE is busy checking that buffer.
+
+ This function can be used for status lines, tab names, etc.
+
+
ale#fix#registry#Add(name, func, filetypes, desc, [aliases])
*ale#fix#registry#Add()*