jordanisaacs / neovim-flake

Nix flake for neovim with configuration
https://jordanisaacs.github.io/neovim-flake
MIT License
246 stars 54 forks source link

Check client capability before formatting #24

Closed ksonj closed 1 year ago

ksonj commented 1 year ago

Hi, thanks for putting together this project! Not sure if you're interested in contributions, so feel free to close without comment if not, but:

When editing Python files, I am receiving a pyright error claiming that the textDocument/formatting method is unhandled. I guess pyright just doesn't support formatting, which is ok here, because null-ls is doing the formatting just fine. This change simply prevents pyright from even receiving said request and thus suppresses the (harmless) error message.

jordanisaacs commented 1 year ago

lgtm, thanks! I am taking contributions sorry for the late response though.