feat(nu): fix carapace completer
This commit is contained in:
parent
48024589aa
commit
4fef895654
2 changed files with 2 additions and 11 deletions
|
@ -53,7 +53,7 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.carapace ];
|
||||
programs.carapace.enable = true;
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
use ($nu.default-config-dir | path join 'config/keybindings.nu')
|
||||
use ($nu.default-config-dir | path join 'catppuccin.nu')
|
||||
|
||||
let carapace_completer = {|spans|
|
||||
carapace $spans.0 nushell ...$spans | from json
|
||||
}
|
||||
|
||||
$env.PROMPT_INDICATOR = {|| "λ " }
|
||||
$env.PROMPT_INDICATOR_VI_INSERT = {|| "λ " }
|
||||
$env.PROMPT_INDICATOR_VI_NORMAL = {|| "$ " }
|
||||
|
@ -77,12 +73,7 @@ $env.config = {
|
|||
quick: true
|
||||
partial: true
|
||||
algorithm: "prefix"
|
||||
external: {
|
||||
enable: true
|
||||
max_results: 50
|
||||
completer: $carapace_completer
|
||||
}
|
||||
use_ls_colors: true # set this to true to enable file/path/directory completions using LS_COLORS
|
||||
use_ls_colors: true
|
||||
}
|
||||
|
||||
filesize: {
|
||||
|
|
Loading…
Reference in a new issue