From b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 2 Feb 2023 16:23:32 +0100 Subject: helix: Add default language config for rust and python --- .config/helix/languages.toml | 26 ++++++++++++++++++++++++-- 1 file 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 -- cgit v1.2.3-70-g09d2