summaryrefslogtreecommitdiff
path: root/docs/getting_started
diff options
context:
space:
mode:
authorDaniel Perez Alvarez <danielpza@protonmail.com>2021-06-24 21:36:23 -0400
committerGitHub <noreply@github.com>2021-06-25 03:36:23 +0200
commitdd4ed825762d32ca9f791bda3bb9c459886c7061 (patch)
treea09d7723983fbf6bec64695f786090946883ba0a /docs/getting_started
parent9e51766f3e12a8284360ed9a437b21a51ba31d98 (diff)
docs(lsp): Add Emacs eglot lsp configuration example (#10006)
Co-authored-by: John Spurlock <john.spurlock@gmail.com>
Diffstat (limited to 'docs/getting_started')
-rw-r--r--docs/getting_started/setup_your_environment.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/getting_started/setup_your_environment.md b/docs/getting_started/setup_your_environment.md
index b78c25203..769528b74 100644
--- a/docs/getting_started/setup_your_environment.md
+++ b/docs/getting_started/setup_your_environment.md
@@ -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