From 2de443f050f068a9aa31d178cfa4ead845a171ed Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 2 Aug 2024 13:15:51 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20nix=20lsp:=20use=20nixd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/.doom.d/config.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/config/.doom.d/config.el b/config/.doom.d/config.el index b82b3b5..7ce999a 100644 --- a/config/.doom.d/config.el +++ b/config/.doom.d/config.el @@ -58,9 +58,20 @@ ;; (global-wakatime-mode) -(add-to-list 'auto-mode-alist '("\\.njk" . web-mode)) +;; haskell (setq lsp-haskell-formatting-provider "stylish-haskell") + +;; nix-mode (setq nix-nixfmt-bin "nixpkgs-fmt") +(with-eval-after-load 'lsp-mode + (lsp-register-client + (make-lsp-client :new-connection (lsp-stdio-connection "nixd") + :major-modes '(nix-mode) + :priority 0 + :server-id 'nixd))) + +;; web-mode +(add-to-list 'auto-mode-alist '("\\.njk" . web-mode)) ;; TODO: remove when macport updates. ;; see: https://discourse.doomemacs.org/t/how-to-have-tool-bar-mode-0-apply-at-startup-to-avoid-large-title-bar-on-macos-sonoma-when-using-railwaycat-homebrew-emacsmacport/4222/4