Skip to content

Commit

Permalink
add lsp support to js-mode (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr authored Jan 14, 2025
1 parent 88b23d0 commit 2aa9f10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/js-mode/lem-js-mode.asd
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
"lem-xml-mode")
:serial t
:components ((:file "js-mode")
(:file "eslint")))
(:file "eslint")
(:file "lsp-config")))

12 changes: 12 additions & 0 deletions extensions/js-mode/lsp-config.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(uiop:define-package #:lem-js-mode/lsp-config
(:use #:cl)
(:export))
(in-package :lem-js-mode/lsp-config)

(lem-lsp-mode:define-language-spec (js-spec lem-js-mode:js-mode)
:language-id "javascript"
:root-uri-patterns '("package.json" "tsconfig.json")
:command '("typescript-language-server" "--stdio")
: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 2aa9f10

Please sign in to comment.