Skip to content

Commit

Permalink
Support python3 in dap.
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Jul 3, 2020
1 parent 2cefbd3 commit a0fdde6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/init-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
(when emacs/>=25.2p
;; Debug
(use-package dap-mode
:defines dap-python-executable
:functions dap-hydra/nil
:diminish
:bind (:map lsp-mode-map
Expand All @@ -211,7 +212,9 @@
(php-mode . (lambda () (require 'dap-php)))
(elixir-mode . (lambda () (require 'dap-elixir)))
((js-mode js2-mode) . (lambda () (require 'dap-chrome)))
(powershell-mode . (lambda () (require 'dap-pwsh)))))
(powershell-mode . (lambda () (require 'dap-pwsh))))
:init (when (executable-find "python3")
(setq dap-python-executable "python3")))

;; `lsp-mode' and `treemacs' integration
(use-package lsp-treemacs
Expand Down

0 comments on commit a0fdde6

Please sign in to comment.