Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 846 Bytes

File metadata and controls

48 lines (31 loc) · 846 Bytes

doom emacs javascript module

Description

Trying to make js{x}/ts{x} work better in doom emacs

Indentation, Highlighting, and LSP work.

Install

Clone this repo in:

~/.doom.d/modules/

in doom.d/init.el: add:

(doom!
       :tl
       js
)

in doom.d/init.el use:

(lsp +eglot)

instead of just

lsp

This might/will change the lsp client to eglot for other languages, like rust and go. This seems fine if not better so far.

Do Not enable doom’s javascript module in init.el

More info

This doesn’t use any of the ancient, built in javascript emacs stuff. It’s new blank major mode, so the old modes like js2 don’t load.

Eglot for the LSP client. Flycheck just works.

Tree Sitter for syntax highlighting and indentation