mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-13 02:01:58 -07:00
fix(javascript): use nodejs-repl-send-* commands
Now, +eval/send-region-to-repl or +eval:region/+eval:buffer will communicate with the REPL via nodejs-repl's API, instead of feeding the selection to the REPL line-by-line (the fallback method).
This commit is contained in:
parent
d23abed66d
commit
974e45dfd3
1 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
(defun +javascript-common-config (mode)
|
||||
(unless (eq mode 'nodejs-repl-mode)
|
||||
(set-repl-handler! mode #'+javascript/open-repl)
|
||||
(set-repl-handler! mode #'+javascript/open-repl
|
||||
:send-region #'nodejs-repl-send-region
|
||||
:send-buffer #'nodejs-repl-send-buffer)
|
||||
(set-electric! mode :chars '(?\} ?\) ?. ?:))
|
||||
(set-ligatures! mode
|
||||
;; Functional
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue