adding new configs back

This commit is contained in:
2026-01-23 14:45:07 -05:00
parent 0257340cd8
commit 1fa2c0f6c7
5 changed files with 69 additions and 188 deletions

View File

@@ -158,32 +158,32 @@
:after yasnippet)
;;; LSP Keybindings
(with-eval-after-load 'general
(rh/leader-keys
"g" '(:ignore t :which-key "lsp/go-to")
"gd" '(xref-find-definitions :which-key "go to definition")
"gr" '(xref-find-references :which-key "find references")
"gi" '(eglot-find-implementation :which-key "go to implementation")
"gt" '(eglot-find-typeDefinition :which-key "go to type definition")
"gh" '(eldoc-doc-buffer :which-key "show documentation")
"gs" '(eldoc :which-key "signature help")
"ga" '(eglot-code-actions :which-key "code actions")
"gn" '(eglot-rename :which-key "rename symbol")
"ge" '(flymake-show-buffer-diagnostics :which-key "show diagnostics")
"gf" '(eglot-format-buffer :which-key "format buffer")
"d" '(:ignore t :which-key "debug")
"dd" '(dap-debug :which-key "start debugging")
"db" '(dap-breakpoint-toggle :which-key "toggle breakpoint")
"dc" '(dap-continue :which-key "continue")
"dn" '(dap-next :which-key "step over")
"di" '(dap-step-in :which-key "step into")
"do" '(dap-step-out :which-key "step out")
"dr" '(dap-restart-frame :which-key "restart")
"dq" '(dap-disconnect :which-key "quit/disconnect")
"de" '(dap-eval :which-key "eval expression")
"dl" '(dap-ui-locals :which-key "show locals")
"ds" '(dap-ui-sessions :which-key "show sessions")))
;; Standard Emacs bindings for LSP/Eglot features
(with-eval-after-load 'eglot
(define-key eglot-mode-map (kbd "C-c l d") 'xref-find-definitions)
(define-key eglot-mode-map (kbd "C-c l r") 'xref-find-references)
(define-key eglot-mode-map (kbd "C-c l i") 'eglot-find-implementation)
(define-key eglot-mode-map (kbd "C-c l t") 'eglot-find-typeDefinition)
(define-key eglot-mode-map (kbd "C-c l h") 'eldoc-doc-buffer)
(define-key eglot-mode-map (kbd "C-c l s") 'eldoc)
(define-key eglot-mode-map (kbd "C-c l a") 'eglot-code-actions)
(define-key eglot-mode-map (kbd "C-c l n") 'eglot-rename)
(define-key eglot-mode-map (kbd "C-c l e") 'flymake-show-buffer-diagnostics)
(define-key eglot-mode-map (kbd "C-c l f") 'eglot-format-buffer))
;; Standard Emacs bindings for DAP debugging
(with-eval-after-load 'dap-mode
(define-key dap-mode-map (kbd "C-c d d") 'dap-debug)
(define-key dap-mode-map (kbd "C-c d b") 'dap-breakpoint-toggle)
(define-key dap-mode-map (kbd "C-c d c") 'dap-continue)
(define-key dap-mode-map (kbd "C-c d n") 'dap-next)
(define-key dap-mode-map (kbd "C-c d i") 'dap-step-in)
(define-key dap-mode-map (kbd "C-c d o") 'dap-step-out)
(define-key dap-mode-map (kbd "C-c d r") 'dap-restart-frame)
(define-key dap-mode-map (kbd "C-c d q") 'dap-disconnect)
(define-key dap-mode-map (kbd "C-c d e") 'dap-eval)
(define-key dap-mode-map (kbd "C-c d l") 'dap-ui-locals)
(define-key dap-mode-map (kbd "C-c d s") 'dap-ui-sessions))
;;; Conditional loading of work-specific settings (Windows only)
(when (eq system-type 'windows-nt)