doomemacs/modules/lang/javascript
Henrik Lissner cb923eadcc
Add basic LSP support
Still needs to be documented, but includes support for the following
languages:

+ C/C++/ObjC
+ Go
+ Java
+ Javascript
+ OCaml
+ PHP
+ Python
+ Ruby
+ Scala
+ Swift
+ HTML/CSS

Relevant to #460, #716, #1186
2019-02-21 19:13:35 -05:00
..
autoload.el Standardize REPL commands & improve SPC o r 2019-02-18 01:59:56 -05:00
config.el Add basic LSP support 2019-02-21 19:13:35 -05:00
packages.el Add basic LSP support 2019-02-21 19:13:35 -05:00
README.org Standardize REPL commands & improve SPC o r 2019-02-18 01:59:56 -05:00

:lang javascript

This module adds Javascript support.

  • Code completion (tide)
  • REPL support (nodejs-repl)
  • Refactoring commands (js2-refactor)
  • Syntax checking (flycheck)
  • Browser code injection with skewer-mode
  • Coffeescript & JSX support
  • Jump-to-definitions and references support (xref)

Table of Contents   TOC

Install

Node & NPM

To get started with Javascript, you'll need node and its package manager, NPM, installed.

MacOS

brew install node

Arch Linux

sudo pacman --needed --noconfirm -S nodejs npm

Appendix

Commands

command key / ex command description
+javascript/open-repl :repl Open the NodeJS REPL (or send the current selection to it)
+javascript/skewer-this-buffer SPC m S Attaches a browser to the current buffer