diff options
author | David Runge <dave@sleepmap.de> | 2023-02-02 16:23:32 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2023-02-02 16:23:32 +0100 |
commit | b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8 (patch) | |
tree | 4c0012239adc24d51992a3680ca6e2cf60ef7156 /.config/helix | |
parent | 1cbfb82d02ea2836b5924603a709bca6be746022 (diff) | |
download | dotfiles-b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8.tar.gz dotfiles-b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8.tar.bz2 dotfiles-b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8.tar.xz dotfiles-b4e9a604aa17f5241b159d1d7e91cdf47dbd0ea8.zip |
helix: Add default language config for rust and python
Diffstat (limited to '.config/helix')
-rw-r--r-- | .config/helix/languages.toml | 26 |
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 |