emacs/nix: use nixpkgs-fmt
This commit is contained in:
parent
a6633a8256
commit
b70a9baee0
3 changed files with 8 additions and 3 deletions
|
|
@ -21,6 +21,8 @@
|
||||||
(setq lsp-tailwindcss-experimental-class-regex [
|
(setq lsp-tailwindcss-experimental-class-regex [
|
||||||
[ "cls\\(([^)]*)\\)" "\"([^']*)\"" ]
|
[ "cls\\(([^)]*)\\)" "\"([^']*)\"" ]
|
||||||
[ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))
|
[ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))
|
||||||
|
(after! nix-mode
|
||||||
|
(set-formatter! 'nixpkgs-fmt '("nixpkgs-fmt" ) :modes '(nix-mode)))
|
||||||
|
|
||||||
(use-package! websocket
|
(use-package! websocket
|
||||||
:after org-roam)
|
:after org-roam)
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
|
(debugger +lsp) ; FIXME stepping through code, to help you add bugs
|
||||||
direnv
|
direnv
|
||||||
;;docker
|
;;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
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
markdown ; writing docs for people to ignore
|
markdown ; writing docs for people to ignore
|
||||||
;;nim ; python + lisp at the speed of c
|
;;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
|
(ocaml +lsp +tree-sitter) ; an objective camel
|
||||||
(org +roam2 +present +hugo +dragndrop) ; organize your plain life in plain text
|
(org +roam2 +present +hugo +dragndrop) ; organize your plain life in plain text
|
||||||
(php +lsp +tree-sitter) ; perl's insecure younger brother
|
(php +lsp +tree-sitter) ; perl's insecure younger brother
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ in {
|
||||||
pandoc
|
pandoc
|
||||||
|
|
||||||
# Formatters and linters
|
# Formatters and linters
|
||||||
nixfmt # nix formatter
|
nixfmt-rfc-style # nix formatter
|
||||||
|
nixpkgs-fmt
|
||||||
shfmt # sh formatter
|
shfmt # sh formatter
|
||||||
shellcheck # sh linter
|
shellcheck # sh linter
|
||||||
html-tidy # HTML formatter
|
html-tidy # HTML formatter
|
||||||
|
|
@ -37,8 +38,10 @@ in {
|
||||||
# LSPs
|
# LSPs
|
||||||
coursier
|
coursier
|
||||||
# metals # Scala
|
# metals # Scala
|
||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
nil
|
nil
|
||||||
|
|
||||||
phpactor # PHP
|
phpactor # PHP
|
||||||
#OCaml
|
#OCaml
|
||||||
ocaml
|
ocaml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue