瀏覽代碼

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)


Loading…
取消
儲存