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:
parent
9e51766f3e
commit
dd4ed82576
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue