0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

docs(lsp): Add Emacs eglot lsp configuration example (#10006)

Co-authored-by: John Spurlock <john.spurlock@gmail.com>
This commit is contained in:
Daniel Perez Alvarez 2021-06-24 21:36:23 -04:00 committed by GitHub
parent 9e51766f3e
commit dd4ed82576
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,6 +184,23 @@ project (`npm init -y` as necessary), then add the following block to your
}
```
You can also use built-in Deno language server by using
[`eglot`](https://github.com/joaotavora/eglot).
Example configuration:
```elisp
(add-to-list 'eglot-server-programs '((js-mode typescript-mode) . (eglot-deno "deno" "lsp")))
(defclass eglot-deno (eglot-lsp-server) ()
:documentation "A custom class for deno lsp.")
(cl-defmethod eglot-initialization-options ((server eglot-deno))
"Passes through required deno initialization options"
(list :enable t
:lint t))
```
#### Atom
Install [atom-ide-base](https://atom.io/packages/atom-ide-base) package and