-
Notifications
You must be signed in to change notification settings - Fork 1
/
rgr-lsp.el
36 lines (32 loc) · 1023 Bytes
/
rgr-lsp.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(use-package eglot
:config
(defun rgr/eglot-format-buffer()
(when eglot--managed-mode
(eglot-format-buffer)
))
:hook
(before-save . rgr/eglot-format-buffer)
:bind
(:map eglot-mode-map
("<C-return>" . eglot-code-actions)))
(use-package dape
:preface
;; By default dape shares the same keybinding prefix as `gud'
;; If you do not want to use any prefix, set it to nil.
(setq dape-key-prefix "\C-x\C-a")
:custom
(dape-default-breakpoints-file (no-littering-expand-var-file-name "dape/dape-breakpoints"))
(dape-buffer-window-arrangement 'right)
(dape-info-hide-mode-line nil)
(dape-inlay-hints t)
;;(dape-cwd-fn 'projectile-project-root)
:hook
;; Save breakpoints on quit
((kill-emacs . dape-breakpoint-save)
(after-init . dape-breakpoint-load)
(dape-display-source . pulsar-pulse-line)
(dape-compile . kill-buffer))
:config
;; Turn on global bindings for setting breakpoints with mouse
(dape-breakpoint-global-mode))
(provide 'rgr/lsp)