Skip to content

Commit

Permalink
Support pum.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Dec 4, 2023
1 parent 579a9b1 commit 671a58e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions denops/denippet/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ export function main(denops: Denops): void {
);
if (syncDelay >= 0) {
const updateId = lambda.register(denops, async () => {
// pum.vim fires TextChangedI even if the popup menu is visible.
if (await denops.call("pum#entered").catch(() => false)) {
return;
}
if (syncDelay === 0) {
await session.update(session.snippet?.currentNode().tabstop);
} else if (syncDelay > 0) {
Expand Down

0 comments on commit 671a58e

Please sign in to comment.