~typescript config
This commit is contained in:
@@ -155,11 +155,13 @@ flycheck python checker, as well as the interpreter, to be Python3
|
|||||||
scripts into the REPL
|
scripts into the REPL
|
||||||
** JavaScript/TypeScript
|
** JavaScript/TypeScript
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(after! typescript
|
(after! typescript-mode
|
||||||
(setq typescript-indent-level 2)
|
(setq typescript-indent-level 2)
|
||||||
|
(setq tide-format-options '(:indentSize 2 :tabSize 2))
|
||||||
(map!
|
(map!
|
||||||
:localleader
|
:localleader
|
||||||
:desc "=" 'tide-format
|
:map typescript-mode-map
|
||||||
|
:desc "Format code" "=" 'tide-format
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user