Liking cljdoc? Tell your friends :D

nrepl.middleware.completion

Code completion middleware.

The middleware is a simple wrapper around the functionality in nrepl.completion. Its API is inspired by cider-nrepl's "complete" middleware.

The middleware can be configured to use a different completion function via a dynamic variable or a request parameter.

NOTE: The functionality here is experimental and the API is subject to changes.

Code completion middleware.

The middleware is a simple wrapper around the
functionality in `nrepl.completion`. Its
API is inspired by cider-nrepl's "complete" middleware.

The middleware can be configured to use a different completion
function via a dynamic variable or a request parameter.

NOTE: The functionality here is experimental and
the API is subject to changes.
raw docstring

*complete-fn*clj

Function to use for completion. Takes three arguments: prefix, the completion prefix, ns, the namespace in which to look for completions, and options, a map of additional options for the completion function.

Function to use for completion. Takes three arguments: `prefix`, the completion prefix,
`ns`, the namespace in which to look for completions, and `options`, a map of additional
options for the completion function.
sourceraw docstring

completion-replyclj

(completion-reply {:keys [session prefix ns complete-fn options] :as msg})
source

wrap-completionclj

(wrap-completion h)

Middleware that provides code completion. It understands the following params:

  • prefix - the prefix which to complete.
  • ns- the namespace in which to do completion. Defaults to *ns*.
  • complete-fn – a fully-qualified symbol naming a var whose function to use for completion. Must point to a function with signature [prefix ns options].
  • options – a map of options to pass to the completion function.
Middleware that provides code completion.
It understands the following params:

* `prefix` - the prefix which to complete.
* `ns`- the namespace in which to do completion. Defaults to `*ns*`.
* `complete-fn` – a fully-qualified symbol naming a var whose function to use for
completion. Must point to a function with signature [prefix ns options].
* `options` – a map of options to pass to the completion function.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close