Skip to content

When accepting a word, the virtual text should be kept. #467

@gaoqiangks

Description

@gaoqiangks

I set <tab> to accept_word

keymap = {
accept = "<M-w>",
accept_word = "<Tab>",
accept_line = false,
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},

However, when a word is accepted, the virtual text is cleared, and after 1 or 2 seconds, the virtual text appeared again. However, when I accept a word, the text generated by Copilot is more likely to be the same with what they it was before it is clear. Therefore, I think the virtual text should be kept. Here's a video shows what vscode does.

20250420_171856.mp4

It's usually that I don't want to accept all the things copilot generated, but just some words. In vscode, I can use <tab> <tab> <tab>... until what I decide to write something by myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions