natebosch / vim-lsc

A vim plugin for communicating with a language server
BSD 3-Clause "New" or "Revised" License
693 stars 79 forks source link

Completion preview/popup extra information filetype highlight? #464

Open dunrix opened 1 year ago

dunrix commented 1 year ago

When LSCClientShowHover or LSCClientSignatureHelp are invoked, a preview window gets correct filetype set and corresponding syntax highlighting - result after ShowHover on collect method:

image

When invoking symbol completion and Vim's completeopt includes preview or popup option, extra information is not syntax-highlighted, filetype is unset - lsc#complete#complete invoked on .col token:

image

Is there a way how to set syntax highlighting for completion extra info window also? Like filetype=markdown or dynamically by current filetype of buffer in which is it invoked?