diff --git a/config/init.nu b/config/init.nu index ef39214..d571f9a 100644 --- a/config/init.nu +++ b/config/init.nu @@ -133,9 +133,9 @@ let light_theme = { } # External completer example -# let carapace_completer = {|spans| -# carapace $spans.0 nushell $spans | from json -# } +let carapace_completer = {|spans| + carapace $spans.0 nushell $spans | from json +} # The default config record. This is where much of your global configuration is setup. $env.config = { @@ -206,7 +206,7 @@ $env.config = { external: { enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up may be very slow max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options - completer: null # check 'carapace_completer' above as an example + completer: $carapace_completer # check 'carapace_completer' above as an example } } diff --git a/env.nu b/env.nu index 71c041f..0165e4b 100644 --- a/env.nu +++ b/env.nu @@ -46,7 +46,7 @@ def create_left_prompt [] { # Hostname let hostname_color = ansi green_bold - let hostname = (sys).host.hostname + let hostname = (sys host).hostname # Current director let dir_color = ansi blue_bold