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