Skip to content

Truncate long inlay hints #27240

Open
Enhancement
@MariaSolOs

Description

@MariaSolOs

Problem

microsoft/vscode#199610 explains the problem, but the TLDR is that some language servers (like the TypeScript one) don't perform any truncation on inlay hints, which might result on several lines of virtual text.

Expected behavior

My proposal is to add a configuration setting (and hence easily customizable with vim.lsp.with) that limits the length of inlay hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions