tweak(python): use python-shell repl handlers

Fix: #4375
This commit is contained in:
Ethan Leba 2021-12-18 10:39:14 -05:00
parent aebd4b0c99
commit 1d0f4ca424

View file

@ -26,7 +26,10 @@
(when (executable-find "Microsoft.Python.LanguageServer") (when (executable-find "Microsoft.Python.LanguageServer")
(set-eglot-client! 'python-mode '("Microsoft.Python.LanguageServer")))) (set-eglot-client! 'python-mode '("Microsoft.Python.LanguageServer"))))
:config :config
(set-repl-handler! 'python-mode #'+python/open-repl :persist t) (set-repl-handler! 'python-mode #'+python/open-repl
:persist t
:send-region #'python-shell-send-region
:send-buffer #'python-shell-send-buffer)
(set-docsets! '(python-mode inferior-python-mode) "Python 3" "NumPy" "SciPy" "Pandas") (set-docsets! '(python-mode inferior-python-mode) "Python 3" "NumPy" "SciPy" "Pandas")
(set-ligatures! 'python-mode (set-ligatures! 'python-mode