coq_nvim
coq_nvim copied to clipboard
Ghost text overlapping completion
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.
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>"