From 66c582e903235d60feb83b3bafb0bb030b0400a1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 15 Dec 2024 13:39:51 +0100 Subject: feat(helix): Configure Python with ruff and pyright Signed-off-by: David Runge --- .config/helix/languages.toml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 31a9d81..0bf5124 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -20,19 +20,22 @@ roots = [] [[language]] name = "python" -language-servers = [ "pyright" ] +language-servers = [ "pyright", "ruff" ] +auto-format = true -# [[language]] -# name = "python" -# language-servers = [ "ruff" ] -# auto-format = true +[language-server.pyright.config.python.analysis] +typeCheckingMode = "basic" -# [language-server.ruff] -# command = "ruff-lsp" +[language-server.ruff] +command = "ruff-lsp" -# [language-server.ruff.config.settings] -# args = ["--ignore", "E501"] +[language-server.ruff.config.settings.lint] +args = ["--fix"] +enable = true +run = "onSave" -# [language.formatter] -# command = "ruff" -# args = ["format", "--check", "-q", "-"] +[language-server.ruff.config.settings] +# args = ["--ignore", "E501"] +args = ["--fix"] +enable = true +run = "onSave" -- cgit v1.2.3-70-g09d2