Home

helix.drv @main - refs - log -
-
https://git.jolheiser.com/helix.drv.git
My Helix configuration as a Nix derivation
tree log patch
add color support Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQNvl54DDrD1ggKKNT/tDMWzwUXFeUt4GECAuKg0HxanWYPdTYaqbSgKf88VWhZRoTs lcKYLX6SEcmNX+7xXFTwI= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
4 days ago
3 changed files, 8 additions(+), 0 deletions(-)
.helix/languages.tomlREADME.mdconfig/languages.nix
I .helix/languages.toml
1
2
3
4
5
6
7
8
9
diff --git a/.helix/languages.toml b/.helix/languages.toml
new file mode 100644
index 0000000000000000000000000000000000000000..0469a6870a3ca0b5c76040e108c289ac055b85c9
--- /dev/null
+++ b/.helix/languages.toml
@@ -0,0 +1,3 @@
+[[language]]
+name = "nix"
+language-servers = ["nil", "colors"]
M README.md -> README.md
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
diff --git a/README.md b/README.md
index 4d0615da33dc789a5f55e9eafaecc91e5dc58f2c..52cf5355b17be1819e39094229d17a6d202c6da7 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,10 @@ ```sh
 nix run git+https://git.jolheiser.com/helix.drv
 ```
 
+To add color LSP support to any given language, extend the LSPs configured for that language and add `colors`.
+
+See [this server's configuration](.helix/languages.toml) for an example.
+
 ## License
 
 [MIT](LICENSE)
M config/languages.nix -> config/languages.nix
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
diff --git a/config/languages.nix b/config/languages.nix
index d63ed3e2227e3ebd79d96a92ecae92fb441c780b..8475e94ab6e5b2faf386d9f5574e263a552873a5 100644
--- a/config/languages.nix
+++ b/config/languages.nix
@@ -62,5 +62,6 @@           format = [ "I" ];
         };
       };
     };
+    colors.command = "${lib.getExe uwu-colors}";
   };
 }