File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -187,33 +187,40 @@ export type PreviewContext = {
187
187
split ?: "horizontal" | "vertical" | "no" ;
188
188
} ;
189
189
190
+ type PreviewerCommon = {
191
+ /**
192
+ * Line number of preview buffer to be made center and highlighted
193
+ */
194
+ lineNr ?: number ;
195
+ } ;
196
+
190
197
type EmptyPreviewer = {
191
198
kind : "empty" ;
192
- } ;
199
+ } & PreviewerCommon ;
193
200
194
201
export type CommandPreviewer = {
195
202
kind : "command" ;
196
203
197
204
command : string ;
198
- } ;
205
+ } & PreviewerCommon ;
199
206
200
207
export type HelpPreviewer = {
201
208
kind : "help" ;
202
209
203
210
tag : string ;
204
- } ;
211
+ } & PreviewerCommon ;
205
212
206
213
type MarkdownPreviewer = {
207
214
kind : "markdown" ;
208
215
209
216
contents : string [ ] ;
210
- } ;
217
+ } & PreviewerCommon ;
211
218
212
219
type TextPreviewer = {
213
220
kind : "text" ;
214
221
215
222
contents : string [ ] ;
216
- } ;
223
+ } & PreviewerCommon ;
217
224
218
225
/**
219
226
* Previewer defines how the preview is rendered
You can’t perform that action at this time.
0 commit comments