From ffe9bb85933c3b0cf316d609a4b92dc2ab10d4d8 Mon Sep 17 00:00:00 2001
From: uuuvn <uuuvn@uuuvn.space>
Date: Sat, 10 Jun 2023 08:50:25 +0000
Subject: [PATCH] Fix LSP in helix

---
 .helix/config.toml    |  2 ++
 .helix/languages.toml | 13 +++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 .helix/config.toml
 create mode 100644 .helix/languages.toml

diff --git a/.helix/config.toml b/.helix/config.toml
new file mode 100644
index 00000000..a1ec3e0a
--- /dev/null
+++ b/.helix/config.toml
@@ -0,0 +1,2 @@
+[editor]
+auto-format = false
diff --git a/.helix/languages.toml b/.helix/languages.toml
new file mode 100644
index 00000000..2b887fb5
--- /dev/null
+++ b/.helix/languages.toml
@@ -0,0 +1,13 @@
+[[language]]
+name = "rust"
+
+[[language.config.cargo]]
+extraEnv = ["RUST_TARGET_PATH=targets"]
+# Select one of targets to make lsp work for your confguration
+# Do not commit this change
+# TODO: find a better way to do this
+# target = "aarch64-unknown-kernel"
+
+[[language.config.check]]
+targets = ["x86_64-unknown-kernel", "i686-unknown-kernel", "aarch64-unknown-kernel"]
+
-- 
GitLab