From a550ccf9dc9cd94f0817d82a8c038d49852e219a Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 30 May 2023 15:21:36 +0200 Subject: [PATCH] Set up LSP formatter for nix --- config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.el b/config.el index a5b3f77..d863194 100644 --- a/config.el +++ b/config.el @@ -150,6 +150,8 @@ (setq tab-width 2) ;; Set up nix LSP support (add-hook 'nix-mode-local-vars-hook #'lsp!) +(after! lsp-nix + (setq lsp-nix-nil-formatter ["nixfmt"])) ;; Move buffer while maintaining cursor centered (use-package! centered-cursor-mode :config