summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-05-30 19:31:41 +0100
committerGitHub <noreply@github.com>2018-05-30 19:31:41 +0100
commit106d439f56d808c849291db7f6cf8e47fe9f222a (patch)
treee78494642169e7afc28f33af09c79deba12834f0
parent3014d853250d634803d6a3d620b898338b027e02 (diff)
parent1258b032e6b0d12588ba0e77a76983f5483abba2 (diff)
downloadale-106d439f56d808c849291db7f6cf8e47fe9f222a.zip
Merge pull request #1589 from gagbo/balloon_doc
Documentation : document the mouseover magic
-rw-r--r--README.md3
-rw-r--r--doc/ale.txt17
2 files changed, 17 insertions, 3 deletions
diff --git a/README.md b/README.md
index f9233db3..492f52cc 100644
--- a/README.md
+++ b/README.md
@@ -272,6 +272,9 @@ ALE supports "hover" information for printing brief information about symbols at
the cursor taken from Language Server Protocol linters and `tsserver` with the
`ALEHover` command.
+On vim/gvim with `balloon` support you can see the information in a tooltip
+that appears under the mouse when you mouseover a symbol.
+
See `:help ale-hover` for more information.
<a name="installation"></a>
diff --git a/doc/ale.txt b/doc/ale.txt
index 0bf1c849..6fc8367b 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -668,6 +668,15 @@ at the cursor taken from LSP linters. The following commands are supported:
|ALEHover| - Print information about the symbol at the cursor.
+If |b:ale_set_balloons| is set and you are are using vim with the
+|balloon_show()| feature (tested with vim 8 patch 1318), then "hover"
+information also show up when you put the mouse on a symbol in a buffer
+("mouseover").
+Diagnostics information have priority over hover information for the balloon
+space : if there is a diagnostics message (warning or error) on the line the
+mouse points to, then the mouseover will print this information instead of
+hover information.
+
===============================================================================
6. Global Options *ale-options*
@@ -1344,9 +1353,11 @@ g:ale_set_balloons *g:ale_set_balloons*
`has('balloon_eval_term') && !has('gui_running')`
When this option is set to `1`, balloon messages will be displayed for
- problems. Problems nearest to the cursor on the line the cursor is over will
- be displayed. Balloons will not be shown when either |g:ale_enabled| is `0`
- or |b:ale_enabled| is `0`.
+ problems or hover information if relevant. Problems nearest to the cursor on
+ the line the cursor is over will be displayed. If there are no problem, and
+ one of the linters support |ale-hover|, then brief information about the
+ symbol under the cursor will be shown. Balloons will not be shown when
+ either |g:ale_enabled| is `0` or |b:ale_enabled| is `0`.
`b:ale_set_balloons` can be set to `0` to disable balloons for a buffer.
Balloons cannot be enabled for a specific buffer when not initially enabled