steal from MaxMur

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-03 17:57:49 +03:00
parent f31ca59f58
commit 211e509628
11 changed files with 94 additions and 84 deletions

View File

@ -3,8 +3,8 @@
config,
lib,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption getExe;
cfg = config.editor.helix;
in {
options = {
@ -61,7 +61,7 @@ in {
};
};
languages = {
language-server = with lib; {
language-server = {
clangd.command = "${pkgs.clang-tools}/bin/clangd";
markdown-oxide.command = getExe pkgs.markdown-oxide;
# nil.command = getExe pkgs.nil;
@ -74,7 +74,7 @@ in {
{
name = "nix";
auto-format = true;
formatter.command = lib.getExe pkgs.alejandra;
formatter.command = getExe pkgs.alejandra;
language-servers = ["nixd"];
}
# {
@ -86,7 +86,7 @@ in {
{
name = "typst";
auto-format = true;
formatter.command = lib.getExe pkgs.typstyle;
formatter.command = getExe pkgs.typstyle;
language-servers = ["tinymist"];
}
{
@ -109,7 +109,7 @@ in {
# name = "rust";
# auto-format = true;
# language-servers = ["rust-analyzer"];
# formatter.command = lib.getExe pkgs.rustfmt;
# formatter.command = getExe pkgs.rustfmt;
# }
];
};