From 378cac82e8734da7adf06091bd58332c8b74724c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 13 Jan 2024 08:17:50 +0000 Subject: [PATCH] eglot: add some options for nil (nix-lsp) Slightly increase max memory allowance, enable autoArchive and autoEvalInputs --- README.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.org b/README.org index 8f8c004..2c0a98a 100644 --- a/README.org +++ b/README.org @@ -767,6 +767,12 @@ Set treesit to fontify all elements, default was 3 (out of 4) (eglot-autoshutdown t) (eglot-autoreconnect nil) :config + (add-to-list 'eglot-server-programs + `((nix-mode) . ("nil" + :initializationOptions + (:nil (:nix ( :maxMemoryMB 3000 + :flake ( :autoArchive t + :autoEvalInputs t))))))) (add-to-list 'eglot-server-programs `((rust-ts-mode rust-mode) . ("rust-analyzer" :initializationOptions