2016-09-05 02:29:41 +00:00
|
|
|
;;; config.el --- Typescript Layer Configuration File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2016-09-05 02:29:41 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2017-01-02 05:39:04 +00:00
|
|
|
;; variables
|
2016-10-13 06:49:13 +00:00
|
|
|
|
2016-02-02 22:49:37 +00:00
|
|
|
(defvar typescript-fmt-on-save nil
|
|
|
|
"Run formatter on buffer save.")
|
2016-05-02 09:11:16 +00:00
|
|
|
|
|
|
|
(defvar typescript-fmt-tool 'tide
|
2018-06-19 06:25:33 +00:00
|
|
|
"The name of the tool to be used for TypeScript source code formatting.
|
|
|
|
Currently avaliable 'tide (default), 'typescript-formatter and 'prettier.")
|
2016-09-05 02:29:41 +00:00
|
|
|
|
2018-04-27 04:51:30 +00:00
|
|
|
(defvar typescript-backend 'tide
|
|
|
|
"The backend to use for IDE features. Possible values are `tide'
|
|
|
|
+and `lsp'.")
|
|
|
|
|
2016-09-05 02:29:41 +00:00
|
|
|
(spacemacs|define-jump-handlers typescript-mode)
|
2018-02-18 04:38:41 +00:00
|
|
|
(spacemacs|define-jump-handlers typescript-tsx-mode)
|