all repos — nixfiles @ 04297cd105ab1470c74710627c9127c2c09dc263

System and user configuration, managed by nix and home-manager

emacs: silence YAML lsp warning about ordering of keys
Alan Pearce alan@alanpearce.eu
Mon, 05 Jun 2023 16:47:15 +0200
commit

04297cd105ab1470c74710627c9127c2c09dc263

parent

ce3e4b1be88a2d41abe4e98afc72d69e2c3bc61f

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1073,7 +1073,9 @@ :config (progn 						(add-to-list 'eglot-stay-out-of 'company)
             (defun my/setup-eglot-eldoc ()
               (push 'flymake-eldoc-function eldoc-documentation-functions))
-            (add-hook 'eglot-managed-mode-hook 'my/setup-eglot-eldoc)))
+            (add-hook 'eglot-managed-mode-hook 'my/setup-eglot-eldoc)
+            (setq-default eglot-workspace-configuration
+                          '(:yaml (:keyOrdering nil)))))
 
 (use-package consult-eglot
   :commands (consult-eglot-symbols)