fix nushell

This commit is contained in:
Johannes Jöns 2024-07-10 22:11:11 +02:00
parent 8b9272581c
commit 54f12d97dd

View file

@ -10,30 +10,8 @@ in {
programs = {
nushell = {
enable = true;
extraConfig = ''
let carapace_completer = {|spans|
carapace $spans.0 nushell $spans | from json
}
$env.config = {
show_banner: false,
completions: {
case_sensitive: false
quick: true
partial: true
algorithm: "fuzzy"
external: {
enable: true
max_results: 100
completer: $carapace_completer
}
}
}
'';
shellAliases = {
vi = "nvim";
vim = "nvim";
};
};
carapace.enable = true;
carapace.enableNushellIntegration = true;