diff --git a/emacs/init.org b/emacs/init.org index b9a40dd..124237d 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2893,52 +2893,17 @@ Emacs support for the Language Server Protocol (lsp-ui-doc-background '((t (:inherit region)))) (lsp-ui-doc-header '((t (:inherit lsp-face-highlight-write)))) (lsp-ui-sideline-current-symbol '((t (:inherit font-lock-constant-face - :weight ultra-bold))))) - - (use-package dap-mode - :init - (define-transient-command dap-dispatch - "Dispatcher popup for dap-mode commands" - ["Launching" - ("d" "Start debugger" dap-debug)] - ["Debugging" - ("n" "Next" dap-next) - ("i" "Step in" dap-step-in) - ("o" "Step out" dap-step-out) - ("c" "Continue" dap-continue) - ("r" "Restart frame" dap-restart-frame) - ("R" "Launch REPL" dap-ui-repl) - ("l" "View locals" dap-ui-locals) - ("e" "Eval" dap-eval) - ("x" "Inspect" dap-ui-inspect) - ("Q" "Disconnect" dap-disconnect)] - ["Breakpoints" - ("b" "Toggle breakpoint" dap-breakpoint-toggle) - ("B" "View breakpoints" dap-ui-breakpoints)] - ["Misc." - ("T" "Edit template" dap-debug-edit-template) - ("h" "Hydra" dap-hydra)]) - :commands (dap-mode) - :hook ((python-mode) . dap-mode) - :config - (add-hook 'dap-mode-hook - (lambda () - (dap-ui-mode 1) - (dap-tooltip-mode 1))) - (require 'dap-python) - :general - (leader-map "cm" 'dap-dispatch) - ((normal visual motion) "zd" 'dap-dispatch)) + :weight ultra-bold))))) (with-eval-after-load 'lsp-clients (defun lsp-typescript-javascript-tsx-jsx-activate-p (filename major-mode) "Checks if the javascript-typescript language server should be enabled based on FILE-NAME and MAJOR-MODE" (or (member major-mode '(typescript-mode typescript-tsx-mode js-mode js2-mode rjsx-mode)) - (and (eq major-mode 'web-mode) - (or (string-suffix-p ".tsx" filename t) - (string-suffix-p ".jsx" filename t) - (string-suffix-p ".js" filename t)))))) + (and (eq major-mode 'web-mode) + (or (string-suffix-p ".tsx" filename t) + (string-suffix-p ".jsx" filename t) + (string-suffix-p ".js" filename t)))))) #+END_SRC * Python