aboutsummaryrefslogtreecommitdiffstats
path: root/.config/helix
diff options
context:
space:
mode:
Diffstat (limited to '.config/helix')
-rw-r--r--.config/helix/languages.toml26
1 files changed, 24 insertions, 2 deletions
diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml
index 1f0de16..5d24f66 100644
--- a/.config/helix/languages.toml
+++ b/.config/helix/languages.toml
@@ -1,3 +1,25 @@
-[[languages]]
+[[language]]
name = "rust"
-auto-format = true \ No newline at end of file
+auto-format = true
+
+[[language]]
+name = "python"
+scope = "source.python"
+auto-format = true
+shebangs = ["python", "python3"]
+roots = ["pyproject.toml", "setup.py", "setup.cfg", "SConstruct"]
+max-line-length = 120
+language-server = { command = "pylsp" }
+
+[language.config.pylsp.plugins.flake8]
+enabled = true
+maxComplexity = 10
+maxLineLength = 120
+
+[language.config.pylsp.plugins.pycodestyle]
+enabled = false
+
+[language.config.pylsp.plugins.pydocstyle]
+enabled = true
+
+formatter = { command = "black"} \ No newline at end of file