fix helix donnot have fish completions
This commit is contained in:
parent
b8818a8c8b
commit
ee5fa789d8
1 changed files with 42 additions and 37 deletions
|
|
@ -4,40 +4,45 @@
|
|||
inputs,
|
||||
...
|
||||
}:
|
||||
pkgs.runCommand "helix-wrapped"
|
||||
{
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
}
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \
|
||||
--suffix PATH : ${
|
||||
lib.makeBinPath (
|
||||
with pkgs;
|
||||
[
|
||||
rustfmt
|
||||
clang-tools
|
||||
libxml2
|
||||
typstyle
|
||||
pyright
|
||||
ruff
|
||||
gotools
|
||||
yaml-language-server
|
||||
taplo
|
||||
markdown-oxide
|
||||
nixd
|
||||
deno
|
||||
nixfmt-rfc-style
|
||||
vscode-langservers-extracted
|
||||
fish-lsp
|
||||
gopls
|
||||
golangci-lint-langserver
|
||||
tinymist
|
||||
delve
|
||||
lldb
|
||||
rust-analyzer
|
||||
nil
|
||||
]
|
||||
)
|
||||
}
|
||||
''
|
||||
let
|
||||
helix = inputs.helix.packages."${pkgs.system}".default;
|
||||
runtimeInputs = (
|
||||
with pkgs;
|
||||
[
|
||||
rustfmt
|
||||
clang-tools
|
||||
libxml2
|
||||
typstyle
|
||||
pyright
|
||||
ruff
|
||||
gotools
|
||||
yaml-language-server
|
||||
taplo
|
||||
markdown-oxide
|
||||
nixd
|
||||
deno
|
||||
nixfmt-rfc-style
|
||||
vscode-langservers-extracted
|
||||
fish-lsp
|
||||
gopls
|
||||
golangci-lint-langserver
|
||||
tinymist
|
||||
delve
|
||||
lldb
|
||||
rust-analyzer
|
||||
nil
|
||||
]
|
||||
);
|
||||
in
|
||||
pkgs.symlinkJoin {
|
||||
name = "helix-wrapped";
|
||||
paths = [ helix ];
|
||||
inherit (helix) meta;
|
||||
buildInputs = [
|
||||
pkgs.makeWrapper
|
||||
];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/hx \
|
||||
--suffix PATH : ${lib.makeBinPath runtimeInputs}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue