diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 22c5dca..d9e9261 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -539,6 +539,7 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun '("\\*compilation\\*" compilation-mode "^\\*vterm\\*" vterm-mode "^\\*Flymake.*" flymake-mode + "^\\*Flycheck.*" flycheck-error-list-mode "^\\*lsp-help\\*" lsp-help-mode ;; "^\\*ansi-term\\*$" term-mode ("^\\*Warnings\\*$" . hide) @@ -743,6 +744,7 @@ targets." *** Consult #+begin_src emacs-lisp (straight-use-package 'consult) +(straight-use-package 'consult-lsp) ;; (defun joe/consult-line () ;; (interactive) @@ -1032,12 +1034,10 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i (setq lsp-eldoc-render-all nil) (evil-global-set-key 'normal (kbd "M-d") #'lsp-describe-thing-at-point) -(evil-global-set-key 'normal (kbd "le") 'flycheck-mode) (evil-global-set-key 'normal (kbd "lh") 'lsp-headerline-breadcrumb-mode) (evil-global-set-key 'normal (kbd "li") 'lsp-rust-analyzer-inlay-hints-mode) -;; (evil-global-set-key 'normal (kbd "ls") 'lsp-) -;; (lsp-request-async "textDocument/hover" (lsp--text-document-position-params) -;; (lambda (docs) (message docs))) +(evil-global-set-key 'normal (kbd "cs") 'consult-lsp-symbols) +(evil-global-set-key 'normal (kbd "cf") 'consult-lsp-file-symbols) ;; This function allows us to extract Rust's true function signature (cl-defmethod lsp-clients-extract-signature-on-hover (contents (_server-id (eql rust-analyzer))) @@ -1061,9 +1061,11 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i ;; TODO Add wrapping to these functions (evil-global-set-key 'normal (kbd "M-e") #'flycheck-next-error) (evil-global-set-key 'normal (kbd "M-E") #'flycheck-previous-error) +(evil-global-set-key 'normal (kbd "ee") 'flycheck-mode) (evil-global-set-key 'normal (kbd "el") #'flycheck-list-errors) +(evil-global-set-key 'normal (kbd "ce") #'consult-lsp-diagnostics) #+end_src -** * Languages +** Languages *** Rust #+begin_src emacs-lisp (straight-use-package 'rustic)