Commit 3a9f161
committed
Automatically enable inlay hints in Lean buffers.
leanprover/lean4#6768 is now merged (hooray!) and means that Lean shows
useful information like the use of auto-implicits via inlay hints.
This functionality is already available on Lean4 HEAD, and will shortly
be available in nightlies (and then in a release candidate).
Note that Neovim does not enable them by default, but this is mostly
because exactly what is shown in inlay hints varies widely by language
-- and here, it seems more reasonable that they be enabled by default in
Lean.
We do so only buffer-locally, and users can opt out of this by setting
`enabled = false` in the new `inlay_hint` config table.
(This also shouldn't interfere if any user is calling
`vim.lsp.inlay_hint.enable()` themselves already).1 parent e9d9a35 commit 3a9f161
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
92 | 105 | | |
93 | 106 | | |
94 | 107 | | |
| |||
0 commit comments