Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.08 KB

README.org

File metadata and controls

55 lines (37 loc) · 1.08 KB

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

I haven’t been able to get flymake-eslint-enable to start automatically. Something in eglot kills it. Start it manually if you want.

flymake-eslint-enable

this gets eslint lints working. eglot’s flycheck shows only typescript lints.