superlou / lapce-python

Python LSP plugin for the Lapce editor
MIT License
22 stars 4 forks source link

Disable linting/formatting #19

Open SecT0uch opened 2 months ago

SecT0uch commented 2 months ago

I would like to use ruff-lsp for linting and formatting and python-language-server for completions (ruff doesn't do completions).

When activating both plugins at the same time, linting is not working anymore. Is there any way to configure these options of the LSP server ?

I would like to configure the LSP server with:

pylsp.plugins.autopep8.enabled = false
pylsp.plugins.flake8.enabled = false
pylsp.plugins.yapf.enabled = false
pylsp.plugins.black.enabled = false
pylsp.plugins.pylint.enabled = false
pylsp.plugins.pyflakes.enabled = false
pylsp.plugins.pycodestyle.enabled = false
pylsp.plugins.pydocstyle.enabled = false
pylsp.plugins.mccabe.enabled = false
pylsp.plugins.rope_autoimport.code_actions.enabled = false

Can we do that via settings.toml or superlou.lapce-python/volt.toml ?

Or even better: would it be possible to disable linting and formatting capabilities of the plugin ? So if a new linter gets added to python-lang-server we won't have to edit our configuration to exclude it