Use prettier in place of prettier-js
prettier-js does not seem to be maintained
This commit is contained in:
parent
6c5e5c9e1e
commit
e777a9d59f
1 changed files with 4 additions and 6 deletions
|
@ -1089,11 +1089,9 @@ Indent 2 spaces
|
||||||
Prettier has my preference for formatting JavaScript and TypeScript
|
Prettier has my preference for formatting JavaScript and TypeScript
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package prettier-js
|
(use-package prettier
|
||||||
:config
|
:config
|
||||||
(setq prettier-js-args '("--single-quote" "true"))
|
(global-prettier-mode))
|
||||||
:hook
|
|
||||||
(js2-mode . typescript-mode))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
TypeScript stuff
|
TypeScript stuff
|
||||||
|
@ -1185,7 +1183,7 @@ Add support for Elixir with [[https://github.com/elixir-editors/emacs-elixir][el
|
||||||
(elixir-mode . (lambda () (add-hook 'before-save-hook 'elixir-format nil t)))
|
(elixir-mode . (lambda () (add-hook 'before-save-hook 'elixir-format nil t)))
|
||||||
(elixir-mode . eglot-ensure))
|
(elixir-mode . eglot-ensure))
|
||||||
:config
|
:config
|
||||||
(setq lsp-elixir-server-command '("elixir-ls"))
|
;; (setq lsp-elixir-server-command '("elixir-ls"))
|
||||||
(add-to-list 'auto-mode-alist '("\\.[hl]eex\\'" . elixir-mode)))
|
(add-to-list 'auto-mode-alist '("\\.[hl]eex\\'" . elixir-mode)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue