From 78c86712aa5e9a6a969b16a5e3312b7de7b4d82c Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 1 Feb 2024 20:57:40 +0100 Subject: helix: Add pyright as LSP for Python Add some comments about how to add ruff-lsp Signed-off-by: David Runge --- .config/helix/languages.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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", "-"] -- cgit v1.2.3-70-g09d2