aboutsummaryrefslogtreecommitdiffstats
path: root/.config/helix/languages.toml
diff options
context:
space:
mode:
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"