diff --git a/doomemacs/.config/doom/config.el b/doomemacs/.config/doom/config.el index 98f340a..97f66e1 100644 --- a/doomemacs/.config/doom/config.el +++ b/doomemacs/.config/doom/config.el @@ -82,3 +82,8 @@ (drag-stuff-global-mode 1) (map! :v "J" #'drag-stuff-down :v "K" #'drag-stuff-up)) + +;; Format buffer bind +(map! :leader + (:prefix ("f" . "format") + :desc "Format buffer" "m" #'+format/buffer)) diff --git a/doomemacs/.config/doom/init.el b/doomemacs/.config/doom/init.el index 25be9f6..ec305bf 100644 --- a/doomemacs/.config/doom/init.el +++ b/doomemacs/.config/doom/init.el @@ -151,7 +151,7 @@ lua ; one-based indices? one-based indices markdown ; writing docs for people to ignore ;;nim ; python + lisp at the speed of c - nix ; I hereby declare "nix geht mehr!" + (nix +lsp) ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel org ; organize your plain life in plain text php ; perl's insecure younger brother @@ -166,7 +166,7 @@ ;;rst ; ReST in peace (ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() - (scala +lsp) ; java, but good + (scala +lsp +tree-sitter) ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor ;;sml diff --git a/nix-darwin/home.nix b/nix-darwin/home.nix index 2881557..3cb283c 100644 --- a/nix-darwin/home.nix +++ b/nix-darwin/home.nix @@ -163,6 +163,7 @@ # scala metals scalafmt + sbt # formatters shfmt