aboutsummaryrefslogtreecommitdiffstats
path: root/.config/helix/languages.toml
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2024-12-15 13:39:51 +0100
committerDavid Runge <dave@sleepmap.de>2024-12-15 13:39:51 +0100
commit66c582e903235d60feb83b3bafb0bb030b0400a1 (patch)
treee4c37a3759469d5b937f35f21fc2b04ae0cf6402 /.config/helix/languages.toml
parentdf7c4aec1184b15a2265fa7a21398e2a4219deb6 (diff)
downloaddotfiles-66c582e903235d60feb83b3bafb0bb030b0400a1.tar.gz
dotfiles-66c582e903235d60feb83b3bafb0bb030b0400a1.tar.bz2
dotfiles-66c582e903235d60feb83b3bafb0bb030b0400a1.tar.xz
dotfiles-66c582e903235d60feb83b3bafb0bb030b0400a1.zip
feat(helix): Configure Python with ruff and pyright
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to '.config/helix/languages.toml')
-rw-r--r--.config/helix/languages.toml27
1 files 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"