Enable eglot and copilot in yaml-mode (and copilot in json mode too)

This commit is contained in:
Jeremy Dormitzer 2024-03-26 14:21:11 -04:00
parent 9dfffe3654
commit 9a7a320f8a
2 changed files with 5 additions and 1 deletions

View File

@ -208,6 +208,7 @@
(ruby-ts-mode . eglot-ensure)
(sh-mode . eglot-ensure)
(bash-ts-mode . eglot-ensure)
(yaml-mode . eglot-ensure)
:custom
(eglot-confirm-server-initiated-edits nil)
(eglot-connect-timeout nil))
@ -233,7 +234,9 @@
;; AI assistance
(use-package copilot
:straight (:host github :repo "copilot-emacs/copilot.el" :files ("dist" "*.el"))
:hook (prog-mode . copilot-mode)
:hook ((prog-mode . copilot-mode)
(yaml-mode . copilot-mode)
(json-mode . copilot-mode))
:general
(prog-mode-map "C-c <tab>" #'copilot-complete)
(copilot-completion-map "C-n" #'copilot-next-completion

View File

@ -52,6 +52,7 @@ brew "terraform-ls"
brew "texinfo"
brew "typescript-language-server"
brew "vscode-langservers-extracted"
brew "yaml-language-server"
brew "youtube-dl"
cask "alfred"
cask "bartender"