Skip to content

Timeout in neovim LSP #163

@jheuel

Description

@jheuel

Problem description

Trying to format the current neovim buffer using vim.lsp.buf.format fails with a message that the LSP times out. It runs instantly if I only use rustfmt without leptosfmt. Increasing the timeout to 5s still fails, while running leptosfmt . on the whole project in the terminal finishes in well under a second. My system is a M1 MacBook Pro.

Configuration

Leptosfmt is configured in the recommended way by creating a rust-analyzer.toml with the content

[rustfmt] 
overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions