summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-06-05 16:47:15 +0200
committerAlan Pearce2023-06-05 16:47:15 +0200
commit04297cd105ab1470c74710627c9127c2c09dc263 (patch)
tree75b49fbcb1ad6fd781bbdcbf7859f917b7c2e45f /user
parentce3e4b1be88a2d41abe4e98afc72d69e2c3bc61f (diff)
downloadnixfiles-04297cd105ab1470c74710627c9127c2c09dc263.tar.lz
nixfiles-04297cd105ab1470c74710627c9127c2c09dc263.tar.zst
nixfiles-04297cd105ab1470c74710627c9127c2c09dc263.zip
emacs: silence YAML lsp warning about ordering of keys
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 723d6c27..1c72dcbb 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1073,7 +1073,9 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 						(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)