Compare commits

...

5 commits

Author SHA1 Message Date
Janis 1bdb5ed156 wgsl/wesl mode with wgsl-analyzer 2025-08-22 00:34:23 +02:00
Janis 215f932359 comment out consult-lsp 2025-08-22 00:34:07 +02:00
Janis 4f10923024 #' syntax for consult-xref 2025-08-22 00:33:51 +02:00
Janis df9af24dfd consult-ripgrep keybinds 2025-08-22 00:33:27 +02:00
Janis bfd64368c4 actually implement copilot-chat 2025-08-07 16:46:45 +02:00

View file

@ -525,6 +525,10 @@ Honestly not very happy with this at the moment, but it's kind of hacked togethe
"ff" #'find-file
"fi" #'nemo/edit-init-org
"fs" #'save-buffer
"fr" #'consult-ripgrep
"fR" (lambda () (interactive)
(let ((dir (read-directory-name "Ripgrep directory: ")))
(consult-ripgrep dir)))
)
)
#+end_src
@ -1132,8 +1136,8 @@ Use =consult-xref= for =lsp-xref= and =xref-find-references=.
("C-x b" . consult-buffer)
("M-g g" . consult-goto-line))
:init
(setq xref-show-xrefs-function 'consult-xref
xref-show-definitions-function 'consult-xref)
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)
:config
())
#+end_src
@ -1423,6 +1427,30 @@ Use =inheritenv= and =envrc= to load ~.envrc~ direnv files:
#+end_src
*** copilot-chat.el
#+begin_src emacs-lisp
(use-package copilot-chat
:straight (:host github :repo "chep/copilot-chat.el" :files ("*.el"))
:after (org markdown-mode)
:general
(leader-def
"cg" #'copilot-chat-insert-commit-message
"cG" #'copilot-chat-regenerate-commit-message
"cC" #'copilot-chat-display
"cba" #'copilot-chat-add-current-buffer
"cbd" #'copilot-chat-del-current-buffer
"cbw" #'copilot-chat-add-workspace
"cbf" #'copilot-chat-add-file
"cbb" #'copilot-chat-list
"cch" #'copilot-chat-hide
"ccx" #'copilot-chat-reset
"ccb" #'copilot-chat-switch-to-buffer
"ccd" #'copilot-chat-doc
"ccr" #'copilot-chat-review
"ccm" #'copilot-chat-set-model
"cy" #'copilot-chat-yank
)
)
#+end_src
*** COMMENT Ollama
I feel so bad for this.. but its not awful..
@ -1597,18 +1625,18 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u
(add-to-list 'lsp-language-id-configuration '("CMakeLists.txt" . "cmake"))
)
(use-package consult-lsp
:straight t
:general
(with-eval-after-load 'lsp-mode
(general-define-key
:keymaps 'lsp-command-map
"c s" '("Symbols" . consult-lsp-symbols)
"c f" '("Symbols" . consult-lsp-file-symbols)
"c d" '("Diagnostics" . consult-lsp-diagnostics)
)
)
)
;; (use-package consult-lsp
;; :straight t
;; :general
;; (with-eval-after-load 'lsp-mode
;; (general-define-key
;; :keymaps 'lsp-command-map
;; "c s" '("Symbols" . consult-lsp-symbols)
;; "c f" '("Symbols" . consult-lsp-file-symbols)
;; "c d" '("Diagnostics" . consult-lsp-diagnostics)
;; )
;; )
;; )
(use-package lsp-treemacs
:straight t
@ -1646,7 +1674,24 @@ LSP sets it's prefix key to =s-l= by default, which uses the Super key which I u
#+end_src
** Graphics
glsl-mode:
*** WGSL/WESL
#+begin_src emacs-lisp
(use-package wgsl-mode
:straight t
:ensure lsp-mode
:mode "\\.wesl\\'"
:hook (wgsl-mode . lsp-deferred)
:init
(add-to-list 'lsp-language-id-configuration '(wgsl-mode . "wgsl"))
(lsp-register-client (make-lsp-client
:new-connection (lsp-stdio-connection "wgsl-analyzer")
:activation-fn (lsp-activate-on "wgsl")
:server-id 'wgsl-analyzer))
)
#+end_src
*** glsl-mode:
#+begin_src emacs-lisp
(use-package glsl-mode
:straight t