Skip to content

Commit

Permalink
JS: LSP built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Jan 14, 2025
1 parent 6a40033 commit 2d0a80d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions content/en/modes/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
title: JavaScript
---

## Configuration
## LSP configuration

An example JS config for LSP:
LSP is built-in for JavaScript mode.

Its config is defined in the package `lem-js-mode/lsp-config`.

Before January, 2025, you ha to add a configuration snippet
yourself. This is an example:

```lisp
(lem-lsp-mode/lsp-mode::define-language-spec
Expand All @@ -16,4 +21,4 @@ An example JS config for LSP:
:install-command "npm install -g typescript-language-server typescript"
:readme-url "https://github.com/typescript-language-server/typescript-language-server"
:connection-mode :stdio)
```
```

0 comments on commit 2d0a80d

Please sign in to comment.