summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2023-02-17 18:58:11 -0600
committerBrad Clawsie <brad@b7j0c.org>2023-02-17 18:58:11 -0600
commit7fc618168d4826dc5c1202b745109de4deaf1b0f (patch)
tree23917f4d8b5dd9f6f84d73ee0d62f6ac440f97d2
parent97a617e53bf2894d9d64a747d1a4b7514620aadb (diff)
typescript
-rw-r--r--emacs/dotemacs5
-rw-r--r--helix/languages.toml3
2 files changed, 6 insertions, 2 deletions
diff --git a/emacs/dotemacs b/emacs/dotemacs
index 0357187..bcd7514 100644
--- a/emacs/dotemacs
+++ b/emacs/dotemacs
@@ -196,12 +196,13 @@
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
;; typescript/js/deno
+(add-hook 'typescript-mode-hook #'lsp)
(add-hook 'typescript-mode-hook #'lsp-deferred)
+(add-hook 'typescript-mode-hook (lambda () (setq lsp-disabled-clients '(ts-ls)))) ;; play nice with deno
(add-hook 'typescript-mode-hook #'yas-minor-mode-on)
(add-hook 'typescript-mode-hook 'deno-fmt-mode)
(add-hook 'js2-mode-hook 'deno-fmt-mode)
-;; be like deno fmt
-(setq typescript-indent-level 2)
+(setq typescript-indent-level 2) ;; like deno fmt
;; paredit
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
diff --git a/helix/languages.toml b/helix/languages.toml
new file mode 100644
index 0000000..9e0c86f
--- /dev/null
+++ b/helix/languages.toml
@@ -0,0 +1,3 @@
+[[language]]
+name = "typescript"
+language-server = { command = "deno", args = ["lsp"] }