yaegassy / coc-intelephense

intelephense (PHP language server) extension for coc.nvim. intelephense’s various LSP features and this extension's additional features are available.
https://www.npmjs.com/package/@yaegassy/coc-intelephense
MIT License
98 stars 4 forks source link

feat: add inlineParametersInlayHintsFeature (client base) #41

Closed yaegassy closed 2 years ago

yaegassy commented 2 years ago

Description

Intelephense's language server itself does not yet offer inlay hints feature. I have created a client based inlay hints feature.

By default, this feature is disabled, Set "intelephense.client.disableInlayHints", to false to use the feature.

Also, a relatively new coc.nvim is required for this feature to work. If coc.nvim is out of date, please update it.

As a side note, this feature does not work if coc.preferences.enableMarkdown is set to false.

DEMO (mp4)

https://user-images.githubusercontent.com/188642/173528982-a37e710d-bffa-47ce-9c15-2b36ec096ee8.mp4

Reference & Thanks