diff options
author | w0rp <devw0rp@gmail.com> | 2018-04-22 19:49:24 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-04-22 19:49:30 +0100 |
commit | 286abd12d3adf3fdb3ed90a71b9dd8e8af4bf841 (patch) | |
tree | 07f032fb2e48d6054eb933bc4261d4bcea7950f0 /doc/ale.txt | |
parent | 5a365e792693373413984a7eae2d64f7d92c1238 (diff) | |
download | ale-286abd12d3adf3fdb3ed90a71b9dd8e8af4bf841.zip |
Add support for finding references using LSP servers or tsserver
Diffstat (limited to 'doc/ale.txt')
-rw-r--r-- | doc/ale.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 1f988e7d..fa25cdde 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -13,6 +13,7 @@ CONTENTS *ale-contents* 5. Language Server Protocol Support.....|ale-lsp| 5.1 Completion........................|ale-completion| 5.2 Go To Definition..................|ale-go-to-definition| + 5.3 Find References...................|ale-find-references| 6. Global Options.......................|ale-options| 6.1 Highlights........................|ale-highlights| 6.2 Options for write-good Linter.....|ale-write-good-options| @@ -642,6 +643,17 @@ information returned by LSP servers. The following commands are supported: |ALEGoToDefinitionInTab| - The same, but for opening the file in a new tab. +------------------------------------------------------------------------------- +5.3 Find References *ale-find-references* + +ALE supports finding references for symbols though any enabled LSP linters. +ALE will display a preview window showing the places where a symbol is +referenced in a codebase when a command is run. The following commands are +supporte3: + +|ALEFindReferences| - Find references for the word under the cursor. + + =============================================================================== 6. Global Options *ale-options* @@ -1746,6 +1758,18 @@ ALE will use to search for Python executables. =============================================================================== 8. Commands/Keybinds *ale-commands* +ALEFindReferences *ALEFindReferences* + + Find references in the codebase for the symbol under the cursor using the + enabled LSP linters for the buffer. ALE will display a preview window + containing the results if some references are found. + + The window can be navigated using the usual Vim navigation commands. The + Enter key (`<CR>`) can be used to jump to a referencing location, or the `t` + key can be used to jump to the location in a new tab. + + A plug mapping `<Plug>(ale_find_references)` is defined for this command. + ALEFix *ALEFix* Fix problems with the current buffer. See |ale-fix| for more information. |