feat(LSP): Delete unnecessary settings

Third-party installed plugins are enabled by default, hence there is no
need to explicitly enable it.

Ruff plugin doesn't come with standard PyLSP, and is one (along with
pylsp-mypy) of the manually added plugins.
This commit is contained in:
Dionisio E Alonso 2024-02-26 12:43:53 -03:00
parent d89fbb2f40
commit fe8b7b0238
2 changed files with 1 additions and 3 deletions

View File

@ -16,8 +16,7 @@
(add-hook 'prog-mode-hook 'eglot-ensure) ; Requires LSP servers in PATH
(setq-default eglot-workspace-configuration
'(:pylsp (:configurationSources ["flake8"]
:plugins (:ruff (:enabled t)
:flake8 (:enabled t)
:plugins (:flake8 (:enabled t)
:pylint (:enabled t
:executable "pylint")
:pylsp_mypy (:overrides [t "--no-pretty"])

View File

@ -27,7 +27,6 @@ end)
local pylsp_settings = {
configurationSources = { "flake8" }, -- tool's config files to override settings from
plugins = {
ruff = { enabled = true }, -- Settings come from $XDG_CONFIG_HOME/ruff/ruff.toml
flake8 = { enabled = true },
pylint = { enabled = true },
pylsp_mypy = { overrides = { true, "--no-pretty" } },