fix helix donnot have fish completions

This commit is contained in:
ulic-youthlic 2025-01-17 18:01:19 +08:00
parent b8818a8c8b
commit ee5fa789d8
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -4,40 +4,45 @@
inputs, inputs,
... ...
}: }:
pkgs.runCommand "helix-wrapped" let
{ helix = inputs.helix.packages."${pkgs.system}".default;
buildInputs = [ pkgs.makeWrapper ]; runtimeInputs = (
} with pkgs;
'' [
mkdir -p $out/bin rustfmt
makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \ clang-tools
--suffix PATH : ${ libxml2
lib.makeBinPath ( typstyle
with pkgs; pyright
[ ruff
rustfmt gotools
clang-tools yaml-language-server
libxml2 taplo
typstyle markdown-oxide
pyright nixd
ruff deno
gotools nixfmt-rfc-style
yaml-language-server vscode-langservers-extracted
taplo fish-lsp
markdown-oxide gopls
nixd golangci-lint-langserver
deno tinymist
nixfmt-rfc-style delve
vscode-langservers-extracted lldb
fish-lsp rust-analyzer
gopls nil
golangci-lint-langserver ]
tinymist );
delve in
lldb pkgs.symlinkJoin {
rust-analyzer name = "helix-wrapped";
nil paths = [ helix ];
] inherit (helix) meta;
) buildInputs = [
} pkgs.makeWrapper
'' ];
postBuild = ''
wrapProgram $out/bin/hx \
--suffix PATH : ${lib.makeBinPath runtimeInputs}
'';
}