Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout in neovim LSP #163

Open
jheuel opened this issue Jan 27, 2025 · 0 comments
Open

Timeout in neovim LSP #163

jheuel opened this issue Jan 27, 2025 · 0 comments

Comments

@jheuel
Copy link

jheuel commented Jan 27, 2025

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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant