summaryrefslogtreecommitdiff
path: root/home-manager/features/cli/shells/nushell/completion.nu
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
commit31c316d19cd974bb81a5d6de62142ff24db1c78e (patch)
treecb941422c76cb8953830a8d58c8e14dca1a10319 /home-manager/features/cli/shells/nushell/completion.nu
parent1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff)
reorganized directory structure
Diffstat (limited to 'home-manager/features/cli/shells/nushell/completion.nu')
-rw-r--r--home-manager/features/cli/shells/nushell/completion.nu17
1 files changed, 17 insertions, 0 deletions
diff --git a/home-manager/features/cli/shells/nushell/completion.nu b/home-manager/features/cli/shells/nushell/completion.nu
new file mode 100644
index 0000000..b25d387
--- /dev/null
+++ b/home-manager/features/cli/shells/nushell/completion.nu
@@ -0,0 +1,17 @@
+# Carapace Autocomplete
+let carapace_completer = {|spans|
+ carapace $spans.0 nushell ...$spans | from json
+}
+$env.config = {
+ completions: {
+ case_sensitive: false
+ quick: true
+ partial: true
+ algorithm: fuzzy
+ external: {
+ enable: true
+ max_results: 100
+ completer: $carapace_completer
+ }
+ }
+}