Set up LSP formatter for nix

This commit is contained in:
coolneng 2023-05-30 15:21:36 +02:00
parent 8a44b7dd7e
commit a550ccf9dc
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@
(setq tab-width 2) (setq tab-width 2)
;; Set up nix LSP support ;; Set up nix LSP support
(add-hook 'nix-mode-local-vars-hook #'lsp!) (add-hook 'nix-mode-local-vars-hook #'lsp!)
(after! lsp-nix
(setq lsp-nix-nil-formatter ["nixfmt"]))
;; Move buffer while maintaining cursor centered ;; Move buffer while maintaining cursor centered
(use-package! centered-cursor-mode (use-package! centered-cursor-mode
:config :config