Skip to content

laduke/doom-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published