python-lsp / pylsp-mypy

Mypy plugin for the Python LSP Server.
MIT License
129 stars 37 forks source link

Diagnostic message cutoff #66

Closed tleplaearthur closed 1 year ago

tleplaearthur commented 1 year ago

My mypy configuration sets pretty which I want to keep for when I'm running mypy in my pre-commit hook in the terminal. But when this is set to true, I also can't see the full diagnostic message in neovim. Most of the message is cutoff. Is there way to disable the pretty setting only in pylsp?

Richardk2n commented 1 year ago

You could use different config files, that are otherwise identical.

Richardk2n commented 1 year ago

A similar issue was seen in #73

You can disable it using overrides:

overrides = [True, "--no-pretty"]

There might be edge cases where this is not sufficient. If they arise commonly enough I would consider special support as proposed by above PR.