coq_nvim icon indicating copy to clipboard operation
coq_nvim copied to clipboard

Ghost text overlapping completion

Open GBeauregard opened this issue 4 years ago • 1 comments

I'd love an option for the completion ghost text to show inline as it will appear with completion acceptance instead of off to the right.

EDIT: Is there also a way to make snippets/completions with fields auto jump to the first field? In rust a lot of the normal completions have a field for methods from the LSP and I'd prefer to jump inside them than having to press c-h (or some other bound key) every time.

GBeauregard avatar Nov 09 '21 21:11 GBeauregard

I think this is what you want. It's a little bit hacky but it works perfectly.

ino <silent><expr> <C-l>   pumvisible() ? (complete_info().selected == -1 ? "\<C-n>\<C-n>\<C-p>\<C-y>" : "\<C-y>") : "\<CR>"

onemanstartup avatar Dec 16 '21 23:12 onemanstartup