From 65f17bd3933e639323fa5902059cfca3bc69e0e9 Mon Sep 17 00:00:00 2001 From: Michael Hoess Date: Tue, 5 Mar 2024 21:20:19 +0000 Subject: [PATCH 1/3] =?UTF-8?q?helix/languages.toml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helix/languages.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 helix/languages.toml diff --git a/helix/languages.toml b/helix/languages.toml new file mode 100644 index 0000000..a2f0cdd --- /dev/null +++ b/helix/languages.toml @@ -0,0 +1,14 @@ + +# Python3-LSP: + +# python3 -m pip install ruff-lsp black --break-system-packages +# This combo also notifies on unused vars etc. +[language-server.ruff-lsp] +command = "ruff-lsp" +[[language]] +name = "python" +language-servers = [ "ruff-lsp" ] + +# In case you'd like to use ruff alongside black for code formatting: +formatter = { command = "black", args = ["--quiet", "-"] } +auto-format = true \ No newline at end of file From 5cae7e17e760df6603ad909de73719820bc846df Mon Sep 17 00:00:00 2001 From: Michael Hoess Date: Wed, 6 Mar 2024 16:46:56 +0000 Subject: [PATCH 2/3] helix/languages.toml aktualisiert Update for use in CMK + zellij --- helix/languages.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/helix/languages.toml b/helix/languages.toml index a2f0cdd..bfd025c 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -1,7 +1,17 @@ +# For truecolor in zellij +# ----------------------- +# add to .basrc +# alias chx="COLORTERM=truecolor hx" + + # Python3-LSP: - +# ----------- # python3 -m pip install ruff-lsp black --break-system-packages +# in CMK: +# cd ~/local/bin +# ln -s ~/local/lib/python3/bin/ruff* . +# # This combo also notifies on unused vars etc. [language-server.ruff-lsp] command = "ruff-lsp" From 4c5213a194fb026bccd106d260deea2d41d69308 Mon Sep 17 00:00:00 2001 From: Michael Hoess Date: Fri, 8 Mar 2024 17:08:51 +0000 Subject: [PATCH 3/3] helix/languages.toml aktualisiert Add pylsp, since ruff does not replace this part --- helix/languages.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helix/languages.toml b/helix/languages.toml index bfd025c..32c9b10 100644 --- a/helix/languages.toml +++ b/helix/languages.toml @@ -7,17 +7,18 @@ # Python3-LSP: # ----------- -# python3 -m pip install ruff-lsp black --break-system-packages +# python3 -m pip install ruff-lsp python-lsp_server black --break-system-packages # in CMK: # cd ~/local/bin # ln -s ~/local/lib/python3/bin/ruff* . +# ln -s ~/local/bin/pylsp . # # This combo also notifies on unused vars etc. [language-server.ruff-lsp] command = "ruff-lsp" [[language]] name = "python" -language-servers = [ "ruff-lsp" ] +language-servers = [ "ruff-lsp", "pylsp" ] # In case you'd like to use ruff alongside black for code formatting: formatter = { command = "black", args = ["--quiet", "-"] }