emacs/nix: use nixpkgs-fmt

This commit is contained in:
Paul-Henri Froidmont 2024-07-04 03:01:49 +02:00
parent a6633a8256
commit b70a9baee0
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 8 additions and 3 deletions

View file

@ -21,6 +21,8 @@
(setq lsp-tailwindcss-experimental-class-regex [
[ "cls\\(([^)]*)\\)" "\"([^']*)\"" ]
[ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))
(after! nix-mode
(set-formatter! 'nixpkgs-fmt '("nixpkgs-fmt" ) :modes '(nix-mode)))
(use-package! websocket
:after org-roam)

View file

@ -89,7 +89,7 @@
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
direnv
;;docker
;;editorconfig ; let someone else argue about tabs vs spaces
editorconfig ; let someone else argue about tabs vs spaces
;;ein ; tame Jupyter notebooks with emacs
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
@ -149,7 +149,7 @@
;;lua ; one-based indices? one-based indices
markdown ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c
(nix +tree-sitter) ; I hereby declare "nix geht mehr!"
(nix +lsp +tree-sitter) ; I hereby declare "nix geht mehr!"
(ocaml +lsp +tree-sitter) ; an objective camel
(org +roam2 +present +hugo +dragndrop) ; organize your plain life in plain text
(php +lsp +tree-sitter) ; perl's insecure younger brother

View file

@ -27,7 +27,8 @@ in {
pandoc
# Formatters and linters
nixfmt # nix formatter
nixfmt-rfc-style # nix formatter
nixpkgs-fmt
shfmt # sh formatter
shellcheck # sh linter
html-tidy # HTML formatter
@ -37,8 +38,10 @@ in {
# LSPs
coursier
# metals # Scala
# Nix
nil
phpactor # PHP
#OCaml
ocaml