Skip to content

Commit

Permalink
add typescript tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
fbegyn committed Feb 10, 2024
1 parent 6c0a461 commit 4f0768c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion users/francis/hm/configurations/emacs/base-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,18 @@
:defer t
:after (evil kubel))

(use-package deno-ts-mode
:ensure t)
(setq treesit-language-source-alist
'((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))
(setq treesit-language-source-alist
'((typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))

(mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist))

(mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist))
;; ----====-----
;; emacs config rework TODO ALL BELOW

Expand Down Expand Up @@ -593,7 +605,9 @@ the frame and makes it a dedicated window for that buffer."
(use-package eglot
:ensure t
:config
:hook (python-mode . eglot-ensure)
:hook ((python-mode . eglot-ensure)
(deno-ts-mode . eglot-ensure)
(deno-tsx-mode . eglot-ensure))
:custom
(eglot-autoshutdown t)
(eglot-events-buffer-size 50000)
Expand Down

0 comments on commit 4f0768c

Please sign in to comment.