eglot: add some options for nil (nix-lsp)

Slightly increase max memory allowance, enable autoArchive and autoEvalInputs
This commit is contained in:
Evie Litherland-Smith 2024-01-13 08:17:50 +00:00
parent 752b86b5af
commit 378cac82e8

View file

@ -767,6 +767,12 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(eglot-autoshutdown t) (eglot-autoshutdown t)
(eglot-autoreconnect nil) (eglot-autoreconnect nil)
:config :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 (add-to-list 'eglot-server-programs
`((rust-ts-mode rust-mode) . ("rust-analyzer" `((rust-ts-mode rust-mode) . ("rust-analyzer"
:initializationOptions :initializationOptions