You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When point is inside a call, eldoc now wraps the matching parameter
in eldoc-highlight-function-argument. Multi-arity arglists pick
whichever arity fits the current arg count; variadic arities
highlight the rest param once you're past the fixed slots.
Kept language-agnostic via two seams: neat-eldoc-arg-index-function
computes the position (default uses forward-sexp, works for any
Lisp-flavored major mode) and neat-eldoc-arglist-formatter formats
the display string (default parses [a b & rest] shapes). Servers
that report arglists in some other syntax swap the formatter; major
modes where argument boundaries aren't sexps swap the index function.
Destructuring forms containing maps still fall back to the raw
arglist; the read-from-string trick can't handle them without a
bigger parser, and that's not worth the LOC today.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
24
24
- REPL: input history persistence. New `neat-repl-history-file` defaults to `~/.emacs.d/neat-repl-history`; history is loaded on REPL start and saved on buffer kill. Set to nil to disable.
25
25
- REPL: namespace-aware prompt. The prompt is now derived from `neat-repl-prompt-format` (default `"%s> "`) and updates in response to the server's `ns` field, so `user> ` becomes `myapp.core> ` after `(in-ns 'myapp.core)`. `neat-repl-default-ns` controls what appears before the server has reported one.
26
26
- REPL: completion-at-point and eldoc are now also active in the REPL buffer, not just in source buffers running `neat-mode`. Same backends, same caveats (server must implement `completions` / `lookup`).
27
+
- Eldoc highlights the current argument in the displayed arglist. When point sits inside a call like `(map f |coll)`, the param matching the cursor position is wrapped in `eldoc-highlight-function-argument`. Multi-arity arglists pick whichever arity fits the current arg count; variadic arities highlight the rest param once you're past the fixed slots. Two seams keep this language-agnostic: `neat-eldoc-arg-index-function` (defaults to a `forward-sexp`-based walk) and `neat-eldoc-arglist-formatter` (defaults to a Clojure-shape `[a b & rest]` parser). Destructuring forms containing maps fall back to the unhighlighted arglist.
0 commit comments