diff options
author | David Runge <dave@sleepmap.de> | 2024-02-01 20:57:40 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2024-02-01 20:57:40 +0100 |
commit | 78c86712aa5e9a6a969b16a5e3312b7de7b4d82c (patch) | |
tree | e8c57f3370e561a948ed2fdedbfa61b2d90d1c59 /.config/helix | |
parent | 859eff75c45a2fda11d8af0c31b5b27b9bfcce8a (diff) | |
download | dotfiles-78c86712aa5e9a6a969b16a5e3312b7de7b4d82c.tar.gz dotfiles-78c86712aa5e9a6a969b16a5e3312b7de7b4d82c.tar.bz2 dotfiles-78c86712aa5e9a6a969b16a5e3312b7de7b4d82c.tar.xz dotfiles-78c86712aa5e9a6a969b16a5e3312b7de7b4d82c.zip |
helix: Add pyright as LSP for Python
Add some comments about how to add ruff-lsp
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to '.config/helix')
-rw-r--r-- | .config/helix/languages.toml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 81722b5..270e3a4 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -10,3 +10,22 @@ text-width = 80 file-types = ["mutt"] indent = { tab-width = 2, unit = " " } roots = [] + +[[language]] +name = "python" +language-servers = [ "pyright" ] + +# [[language]] +# name = "python" +# language-servers = [ "ruff" ] +# auto-format = true + +# [language-server.ruff] +# command = "ruff-lsp" + +# [language-server.ruff.config.settings] +# args = ["--ignore", "E501"] + +# [language.formatter] +# command = "ruff" +# args = ["format", "--check", "-q", "-"] |