@@ -31,10 +31,10 @@ lean.use_suggested_mappings({bufnr?}) *lean.use_suggested_mappings*
31
31
32
32
33
33
lean.current_search_paths() *lean.current_search_paths*
34
- Return the current Lean search path.
34
+ Return the current Lean search path.
35
35
36
- Includes both the Lean core libraries as well as project-specific
37
- directories.
36
+ Includes both the Lean core libraries as well as project-specific
37
+ directories.
38
38
39
39
40
40
==============================================================================
@@ -68,30 +68,30 @@ InfoviewViewOptions *InfoviewViewOptions*
68
68
69
69
70
70
Pin *Pin*
71
- An individual pin.
71
+ An individual pin.
72
72
73
73
Fields: ~
74
74
{id} (string) @a label to identify the pin
75
75
76
76
77
77
Info *Info*
78
- An individual info.
78
+ An individual info.
79
79
80
80
Fields: ~
81
81
{pin} (Pin)
82
82
{pins} (Pin[])
83
83
84
84
85
85
Infoview *Infoview*
86
- A "view" on an info (i.e. window).
86
+ A "view" on an info (i.e. window).
87
87
88
88
Fields: ~
89
89
{info} (Info)
90
90
{window} (integer)
91
91
92
92
93
93
infoview.enable_debug() *infoview.enable_debug*
94
- Enables printing of extra debugging information in the infoview.
94
+ Enables printing of extra debugging information in the infoview.
95
95
96
96
97
97
InfoviewNewArgs *InfoviewNewArgs*
@@ -110,98 +110,98 @@ FilterSelection *FilterSelection*
110
110
111
111
112
112
infoview.close_all() *infoview.close_all*
113
- Close all open infoviews (across all tabs).
113
+ Close all open infoviews (across all tabs).
114
114
115
115
116
116
infoview.__update_pin_by_uri({uri} ) *infoview.__update_pin_by_uri*
117
- Update pins corresponding to the given URI.
117
+ Update pins corresponding to the given URI.
118
118
119
119
Parameters: ~
120
120
{uri} (string)
121
121
122
122
123
123
infoview.__update_pin_positions() *infoview.__update_pin_positions*
124
- on_lines callback to update pins position according to the given textDocument/didChange parameters.
124
+ on_lines callback to update pins position according to the given textDocument/didChange parameters.
125
125
126
126
127
127
infoview.enable() *infoview.enable*
128
- Enable and open the infoview across all Lean buffers.
128
+ Enable and open the infoview across all Lean buffers.
129
129
130
130
131
131
infoview.set_autoopen() *infoview.set_autoopen*
132
- Set whether a new infoview is automatically opened when entering Lean buffers.
132
+ Set whether a new infoview is automatically opened when entering Lean buffers.
133
133
134
134
135
135
infoview.set_autopause() *infoview.set_autopause*
136
- Set whether a new pin is automatically paused.
136
+ Set whether a new pin is automatically paused.
137
137
138
138
139
139
infoview.get_current_infoview() *infoview.get_current_infoview*
140
- Get the infoview corresponding to the current window.
140
+ Get the infoview corresponding to the current window.
141
141
142
142
Returns: ~
143
143
(Infoview)
144
144
145
145
146
146
infoview.open() *infoview.open*
147
- Open the current infoview (or ensure it is already open).
147
+ Open the current infoview (or ensure it is already open).
148
148
149
149
150
150
infoview.close() *infoview.close*
151
- Close the current infoview (or ensure it is already closed).
151
+ Close the current infoview (or ensure it is already closed).
152
152
153
153
154
154
infoview.toggle() *infoview.toggle*
155
- Toggle whether the current infoview is opened or closed.
155
+ Toggle whether the current infoview is opened or closed.
156
156
157
157
158
158
infoview.pin_toggle_pause() *infoview.pin_toggle_pause*
159
- Toggle whether the current pin receives updates.
159
+ Toggle whether the current pin receives updates.
160
160
161
161
162
162
infoview.add_pin() *infoview.add_pin*
163
- Add a pin to the current cursor location.
163
+ Add a pin to the current cursor location.
164
164
165
165
166
166
infoview.set_diff_pin() *infoview.set_diff_pin*
167
- Set the location for a diff pin to the current cursor location.
167
+ Set the location for a diff pin to the current cursor location.
168
168
169
169
170
170
infoview.clear_pins() *infoview.clear_pins*
171
- Clear any pins in the current infoview.
171
+ Clear any pins in the current infoview.
172
172
173
173
174
174
infoview.clear_diff_pin() *infoview.clear_diff_pin*
175
- Clear a diff pin in the current infoview.
175
+ Clear a diff pin in the current infoview.
176
176
177
177
178
178
infoview.toggle_auto_diff_pin() *infoview.toggle_auto_diff_pin*
179
- Toggle whether "auto-diff" mode is active for the current infoview.
179
+ Toggle whether "auto-diff" mode is active for the current infoview.
180
180
181
181
182
182
infoview.enable_widgets() *infoview.enable_widgets*
183
- Enable widgets in the current infoview.
183
+ Enable widgets in the current infoview.
184
184
185
185
186
186
infoview.disable_widgets() *infoview.disable_widgets*
187
- Disable widgets in the current infoview.
187
+ Disable widgets in the current infoview.
188
188
189
189
190
190
infoview.go_to() *infoview.go_to*
191
- Move the cursor to the infoview window.
191
+ Move the cursor to the infoview window.
192
192
193
193
194
194
infoview.reposition() *infoview.reposition*
195
- Move the current infoview to the appropriate spot based on the
196
- current screen dimensions.
197
- Does nothing if there are more than 2 open windows.
195
+ Move the current infoview to the appropriate spot based on the
196
+ current screen dimensions.
197
+ Does nothing if there are more than 2 open windows.
198
198
199
199
200
200
infoview.select_view_options() *infoview.select_view_options*
201
- Interactively set some view options for the infoview.
201
+ Interactively set some view options for the infoview.
202
202
203
- Does not persist the selected options; if you wish to permanently affect
204
- which hypotheses are shown, set them in your lean.nvim configuration.
203
+ Does not persist the selected options; if you wish to permanently affect
204
+ which hypotheses are shown, set them in your lean.nvim configuration.
205
205
206
206
207
207
==============================================================================
@@ -210,14 +210,21 @@ infoview.select_view_options() *infoview.select_view_options*
210
210
Support for abbreviations (unicode character replacement).
211
211
212
212
abbreviations.load() *abbreviations.load*
213
- Load the Lean abbreviations as a Lua table.
213
+ Load the Lean abbreviations as a Lua table.
214
214
215
215
216
216
abbreviations.reverse_lookup() *abbreviations.reverse_lookup*
217
+ Retrieve the table of abbreviations that would produce the given symbol.
218
+
219
+ Allows for trailing junk. E.g. `λean` will produce information about `λ` .
220
+
221
+ The result is a table keyed by the length of the prefix match, and
222
+ whose value is sorted such that shorter abbreviation suggestions are
223
+ first.
217
224
218
225
219
226
abbreviations.show_reverse_lookup() *abbreviations.show_reverse_lookup*
220
- Show a preview window with the reverse-lookup of the current character.
227
+ Show a preview window with the reverse-lookup of the current character.
221
228
222
229
223
230
abbreviations.convert() *abbreviations.convert*
@@ -266,6 +273,10 @@ satellite.nvim integration *lean.satellite*
266
273
267
274
See https://github.com/lewis6991/satellite.nvim/blob/main/HANDLERS.md
268
275
276
+ *Lean.SatelliteConfig*
277
+ Lean.SatelliteConfig : Satellite.Handlers.BaseConfig
278
+
279
+
269
280
==============================================================================
270
281
LSP *lean.lsp*
271
282
@@ -275,7 +286,7 @@ lsp.enable() *lsp.enable*
275
286
276
287
277
288
lsp.client_for({bufnr} ) *lsp.client_for*
278
- Find the vim.lsp.Client attached to the given buffer.
289
+ Find the vim.lsp.Client attached to the given buffer.
279
290
280
291
Parameters: ~
281
292
{bufnr} (number)
@@ -285,6 +296,7 @@ lsp.client_for({bufnr}) *lsp.client_for*
285
296
286
297
287
298
lsp.plain_goal({params} , {bufnr} ) *lsp.plain_goal*
299
+ Fetch goal state information from the server (async).
288
300
289
301
Parameters: ~
290
302
{params} (lsp.TextDocumentPositionParams)
@@ -296,6 +308,7 @@ lsp.plain_goal({params}, {bufnr}) *lsp.plain_goal*
296
308
297
309
298
310
lsp.plain_term_goal({params} , {bufnr} ) *lsp.plain_term_goal*
311
+ Fetch term goal state information from the server (async).
299
312
300
313
Parameters: ~
301
314
{params} (lsp.TextDocumentPositionParams)
@@ -306,6 +319,13 @@ lsp.plain_term_goal({params}, {bufnr}) *lsp.plain_term_goal*
306
319
(any) plain_term_goal
307
320
308
321
322
+ LeanFileProgressParams *LeanFileProgressParams*
323
+
324
+ Fields: ~
325
+ {textDocument} (lsp.VersionedTextDocumentIdentifier)
326
+ {processing} (LeanFileProgressProcessingInfo[])
327
+
328
+
309
329
*lsp.handlers.file_progress_handler*
310
330
lsp.handlers.file_progress_handler({params} )
311
331
@@ -337,7 +357,7 @@ stderr.show({message}) *stderr.show*
337
357
338
358
339
359
stderr.enable() *stderr.enable*
340
- Enable teeing stderr output somewhere (to a second visible buffer by default).
360
+ Enable teeing stderr output somewhere (to a second visible buffer by default).
341
361
342
362
343
363
==============================================================================
@@ -350,7 +370,7 @@ Client-side sorrying *lean.sorry*
350
370
behavior.
351
371
352
372
sorry.fill() *sorry.fill*
353
- Fill the current cursor position with `sorry` s to discharge all goals.
373
+ Fill the current cursor position with `sorry` s to discharge all goals.
354
374
355
375
356
376
vim:tw=78:ts=8:noet:ft=help:norl:
0 commit comments