🔧 nix lsp: use nixd

This commit is contained in:
James Walker 2024-08-02 13:15:51 -04:00
parent c328c8962c
commit 2de443f050
Signed by: walkah
SSH Key Fingerprint: SHA256:f7Gn4jO4BFHZxWfKTTzEAfWz+cLW51IyGFl9MjDyZGI

View File

@ -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