Set up LSP formatter for nix
This commit is contained in:
parent
8a44b7dd7e
commit
a550ccf9dc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue