Nushell
nushell/nushell#6295 adds support for external completers to nushell.
For this config.nu
must be updated manually according to the snippet output of carapace
.
Here's an example with carapace
as default completer and a couple custom completers:
let external_completer = {|spans|
{
$spans.0: { carapace $spans.0 nushell $spans | from json } # default
example: { example _carapace nushell $spans | from json }
pkill: { carapace --spec '/home/rsteube/.config/carapace/specs/pkill.yaml' nushell $spans | from json }
vault: { carapace --bridge vault/posener nushell $spans | from json }
} | get $spans.0 | each {|it| do $it}
}
let-env config = {
external_completer: $external_completer
}
Changelog
- c25500c Merge pull request #1264 from rsteube/cargo-actionfeatures
- cf87ca1 Merge pull request #1265 from rsteube/clippy-split-action
- 95363d6 Merge pull request #1266 from rsteube/clippy-cleanup
- a2b9fd0 Merge pull request #1267 from rsteube/add-lncrawl
- c2a2a03 Merge pull request #1268 from rsteube/add-ebook-convert
- 86b0af4 Merge pull request #1269 from rsteube/nushell-update-snippet
- 476a1f4 Merge pull request #1270 from rsteube/nushell-fix-script
- ebd4017 Merge pull request #1271 from rsteube/rustup-default-channels
- c1844ab added ebook-convert
- 8ec9be5 added lncrawl
- 241698f cargo-clippy: split ActionLints
- dd5981e cargo: extract ActionFeatures as macro
- 7251dc2 clippy: cleanup
- cb60314 nushell: fix script (omit blank line)
- 69db182 nushell: update snippet
- 0ef69c8 rustup: default channel completion