浏览代码

typescript: Add config for indentation size

master
Bingen Eguzkitza 3 年前
父节点
当前提交
bf71c5c0c3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      lisp/init-typescript.el

+ 4
- 0
lisp/init-typescript.el 查看文件

@@ -20,6 +20,10 @@
;; aligns annotation to the right hand side
(setq company-tooltip-align-annotations t)

;; https://github.com/ananthakumaran/tide/issues/229#issuecomment-357379743
;(setq typescript-indent-level
; (or (plist-get (tide-tsfmt-options) ':indentSize) 4))

;; formats the buffer before saving
(add-hook 'before-save-hook 'tide-format-before-save)


正在加载...
取消
保存