From 9a7a320f8a38538064f60a7345b5a7a5c98b6555 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 26 Mar 2024 14:21:11 -0400 Subject: [PATCH] Enable eglot and copilot in yaml-mode (and copilot in json mode too) --- emacs/.emacs.d/config/init-ide.el | 5 ++++- homebrew/Brewfile | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-ide.el b/emacs/.emacs.d/config/init-ide.el index 22d28a4..1e69b14 100644 --- a/emacs/.emacs.d/config/init-ide.el +++ b/emacs/.emacs.d/config/init-ide.el @@ -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 " #'copilot-complete) (copilot-completion-map "C-n" #'copilot-next-completion diff --git a/homebrew/Brewfile b/homebrew/Brewfile index d73c7e5..3524dcf 100644 --- a/homebrew/Brewfile +++ b/homebrew/Brewfile @@ -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"