From 1723de39decf009d98e0924238504107e8e9bc80 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 26 Dec 2024 00:15:15 -0800 Subject: new commit on laptop --- config/emacs.el | 5 ++++- config/emacs.org | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/emacs.el b/config/emacs.el index d1a4b50..4df7fc8 100644 --- a/config/emacs.el +++ b/config/emacs.el @@ -256,7 +256,10 @@ Otherwise, just insert the typed character." (use-package eglot :config (add-hook 'prog-mode-hook 'eglot-ensure) - (add-hook 'prog-mode-hook 'lsp)) + (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))) + (add-hook 'prog-mode-hook 'lsp) + :hook + (nix-mode . eglot-ensure)) (use-package projectile :init diff --git a/config/emacs.org b/config/emacs.org index dcc4a0e..1fcca6c 100644 --- a/config/emacs.org +++ b/config/emacs.org @@ -321,7 +321,10 @@ We set up eglot, the LSP manager for emacs, now built in: (use-package eglot :config (add-hook 'prog-mode-hook 'eglot-ensure) - (add-hook 'prog-mode-hook 'lsp)) + (add-to-list 'eglot-server-programs '(nix-mode . ("nil"))) + (add-hook 'prog-mode-hook 'lsp) + :hook + (nix-mode . eglot-ensure)) #+end_src ** Projectile Manages projects and shit. -- cgit