Skip to content

Commit 64d8948

Browse files
committed
feat: add FallPreviewRendered autocmd event
1 parent d74d819 commit 64d8948

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

denops/fall/component/preview.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ export class PreviewComponent extends BaseComponent {
172172
winid,
173173
`silent! normal! ${line}G${column}|`,
174174
);
175+
// Emit autocmd for customization
176+
await fn.win_execute(
177+
denops,
178+
winid,
179+
`silent! doautocmd <nomodeline> User FallPreviewRendered:${filename}`,
180+
);
175181
});
176182

177183
return true;

0 commit comments

Comments
 (0)