Skip to content

Question: Can we suggest one line at a time #279

Description

@cachebag

Is / are there setting(s) that make Copilot only suggest a line at at time? I have a hacky config that achieves this but even then it doesn't do what I would prefer which is only ghost inline whatever completion lands on the current line number I am on, even if it may be incomplete.
I.e.

variable I want to write:

let foo = bar
    .moo
    .baz
    .ok_or_else(|| format!("hello"))
    .await;

What I want Copilot to do:

let foo = bar
    .moo
 // .baz    <---- cursor is here, copilot only suggests the completion of baz instead of entire variable

Activity

  1. changed the title [-]Suggest one line at a time[/-] [+]Question: Can we suggest one line at a time[/+] on Apr 22, 2026
  2. yermulnik commented on Apr 22, 2026

    @yermulnik

    If it might fit your need, you can accept Copilot suggestion only partially — by word or by line — rather than accepting whole thing. See https://github.com/github/copilot.vim/blob/release/doc/copilot.txt#L196-L203
    You also can remap these to another key combination at your discretion.

  3. cachebag commented on Apr 22, 2026

    @cachebag
    Author

    If it might fit your need, you can accept Copilot suggestion only partially — by word or by line — rather than accepting whole thing

    @yermulnik This works fine but I still get the noise of the rest of the suggestion. I think it's probably a Copilot quirk, not necessarily a vim/nvim specifc thing that can fix. Although I guess you can simply render [0] of whatever the len() lines is of a suggestion batch.

    Thank you anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions