|
|
|
@ -721,6 +721,49 @@ LSP mode, allows the use of Language Server Protocol for programming.
|
|
|
|
|
:after lsp-mode)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
** lsp-treemacs
|
|
|
|
|
Try these commands with M-x:
|
|
|
|
|
|
|
|
|
|
- =lsp-treemacs-symbols= - Show a tree view of the symbols in the
|
|
|
|
|
current file
|
|
|
|
|
- =lsp-treemacs-references= - Show a tree view for the references of
|
|
|
|
|
the symbol under the cursor
|
|
|
|
|
- =lsp-treemacs-error-list= - Show a tree view for the diagnostic
|
|
|
|
|
messages in the project
|
|
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package lsp-treemacs
|
|
|
|
|
:after lsp)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
** DAP mode
|
|
|
|
|
[[https://emacs-lsp.github.io/dap-mode/][DAP-mode]] is an excellent package for bringing rich debugging
|
|
|
|
|
capabilities to Emacs via the Debug Adapter Protocol. You should check
|
|
|
|
|
out the [[https://emacs-lsp.github.io/dap-mode/page/configuration/][configuration docs]] to learn how to configure the debugger for
|
|
|
|
|
your language. Also make sure to check out the documentation for the
|
|
|
|
|
debug adapter to see what configuration parameters are available to
|
|
|
|
|
use for your debug templates!
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
;; (use-package dap-mode
|
|
|
|
|
;; ;; Uncomment the config below if you want all UI panes to be hidden by default!
|
|
|
|
|
;; ;; :custom
|
|
|
|
|
;; ;; (lsp-enable-dap-auto-configure nil)
|
|
|
|
|
;; ;; :config
|
|
|
|
|
;; ;; (dap-ui-mode 1)
|
|
|
|
|
;; :config
|
|
|
|
|
;; ;; Set up Node debugging
|
|
|
|
|
;; (require 'dap-node)
|
|
|
|
|
;; (dap-node-setup) ;; Automatically installs Node debug adapter if needed
|
|
|
|
|
;;
|
|
|
|
|
;; ;; Bind `C-c l d` to `dap-hydra` for easy access
|
|
|
|
|
;; ;;(general-define-key
|
|
|
|
|
;; ;; :keymaps 'lsp-mode-map
|
|
|
|
|
;; ;; :prefix lsp-keymap-prefix
|
|
|
|
|
;; ;; "d" '(dap-hydra t :wk "debugger"))
|
|
|
|
|
;; )
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** go
|
|
|
|
|
**WARNING**: you need to install =gopls= in your system.
|
|
|
|
|
**WARNING**: =company-go= is deprecated, don't use it
|
|
|
|
|