Open arafune opened 1 year ago
@arafune One thing I noticed with your setup is that the lsp format provided by pylsp seems to take forever, so much so that formatting doesn't seem to complete at all, maybe that's related?
edit: as a side note, I don't think pyright has formatting capabilities, and pylsp uses external formatters
While you say that the time required to format by lsp is relatively long, but I can't improve that myself, can I? Is it difficult to determine when a format ends in Guard?
Ok, my last comment wasn't exactly helpful, so here's a laid out thought:
Given the behaviour I observed, I imagine it may be a bug in guard.nvim that is solvable by us and could potentially solve your problem. I could not be sure because 1. pylsp formatting doesn't behave well on my machine, and 2. debugging the setup you provided is out of the scope of my interest and capabilities (it's best to reduce some of the noise and provide a reliable reproduction step or it's impossible to locate the problem)
I was suggesting revoming lsp formatting in your configuration because pylsp and pyright doesn't offer that, and also you noted that doing so solves your problem.
If you still want to help debug this problem, it would be of great help to provide what was stated above. If not then I am afraid this issue would hang around here going stale.
Thank you :)
before issue closed because I guess it's guard issue :)
Originally posted by @arafune in https://github.com/nvimdev/lspsaga.nvim/issues/1296#issuecomment-1739132730