[Emacs] Disable rust proc macro warnings in lsp

This commit is contained in:
Ivan Malison 2023-06-13 22:21:03 -06:00
parent 422476fb60
commit 4775f11529
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1586,11 +1586,13 @@ custom-set-faces in your custom file.
(progn (progn
(setq highlight-indent-guides-method 'fill))) (setq highlight-indent-guides-method 'fill)))
#+END_SRC #+END_SRC
** chat-gpt ** gptel
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package gptel (use-package gptel
:bind (("C-c g" . gptel-menu))
:config :config
(progn (progn
(add-to-list 'gptel-directives '(finish-code . "You are a large language model and a careful programmer. Provide code that completes what is provided and only code as output without any additional text, prompt or note."))
;; (setq gptel-model "gpt-4") ;; (setq gptel-model "gpt-4")
)) ))
#+end_src #+end_src
@ -2808,6 +2810,7 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
:preface :preface
(progn (progn
(defvar imalison:use-lsp-rust t) (defvar imalison:use-lsp-rust t)
(setq lsp-rust-analyzer-diagnostics-disabled ["unresolved-proc-macro"])
(defun imalison:rust-mode-hook () (defun imalison:rust-mode-hook ()
(when imalison:use-lsp-rust (when imalison:use-lsp-rust
(lsp-deferred)) (lsp-deferred))
@ -4953,7 +4956,7 @@ Ensure all themes that I use are installed:
waher-theme ample-theme material-theme zerodark-theme waher-theme ample-theme material-theme zerodark-theme
color-theme-modern leuven-theme spacemacs-theme gruvbox-theme color-theme-modern leuven-theme spacemacs-theme gruvbox-theme
forest-blue-theme flatland-theme afternoon-theme forest-blue-theme flatland-theme afternoon-theme
cyberpunk-theme)) cyberpunk-theme modus-themes))
(mapcar 'straight-use-package packages-appearance) (mapcar 'straight-use-package packages-appearance)