Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle markdown from LSP data #3274

@w0rp

Description

@w0rp

Related to #2922, it would be nice to handle markdown data from LSP responses for features like hover information, so the relevant languages can be loaded for syntax highlighting, and certain markdown format markers or whatever LSP sends can be turned into Vim highlights.

Here's an example from a project I work on, with output taken from pyright:

image

Ideally that can be rendered in a popup or preview window like this:

DEFAULTS: dict[str, Literal[False]]

I'd like to write a function that accepts markup data and returns [clean_string, highlights], where highlights is a List of highlights to render using Vim/NeoVim highlight functions.

Metadata

Metadata

Assignees

Labels

LSPAny issue relating to LSP or tsserverenhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions