summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 15:14:58 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 15:14:58 -0500
commit8e75a61add3c8023d9a40a63032ee9b4fa52c6ca (patch)
treeae6c80bedf180e420b509595a297c397e8c3c099
parent6f208a42ce93dfac6f16cb16fdc7a4e6d37e4e7d (diff)
typescript-language-server
-rw-r--r--README.md9
-rw-r--r--main.c4
-rw-r--r--ted.cfg7
3 files changed, 15 insertions, 5 deletions
diff --git a/README.md b/README.md
index 64718e3..aa2d9e2 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ in other editors.
- Multiple tabs, each with a different file
- Split screen
- Auto-indent
-- Syntax highlighting for C, C++, Go, HTML, Java, JavaScript, LaTeX, Markdown, Python, and Rust.
+- Syntax highlighting for C, C++, Go, HTML, Java, JavaScript, LaTeX, Markdown, Python, Rust, and TypeScript.
- Find and replace (with regular expressions!)
- Run build command, go to errors
- Run any shell command
@@ -143,6 +143,12 @@ The Go team's `go-pls` is enabled by default. You can download it
Eclipse's `jdtls` is enabled by default.
You can download it [here](download.eclipse.org/jdtls/milestones/?d).
+## JavaScript/TypeScript
+
+`typescript-language-server` is enabled by default.
+You can download it by following
+[the instructions here](https://github.com/typescript-language-server/typescript-language-server).
+
## LaTeX
`texlab` is enabled by default. You can download it
@@ -158,7 +164,6 @@ You can download it [here](https://github.com/python-lsp/python-lsp-server).
by following [the instructions here](https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary).
-
## Tags (lightweight LSP alternative)
If an LSP is too much for you, you can also use [ctags](https://github.com/universal-ctags/ctags)
diff --git a/main.c b/main.c
index dab67d9..d1e365e 100644
--- a/main.c
+++ b/main.c
@@ -1,8 +1,6 @@
/*
@TODO:
-- https://github.com/typescript-language-server/typescript-language-server
- - NOTE: This supports javascript.
-- make sure "save as" works
+- HTML https://github.com/Microsoft/vscode/tree/main/extensions/html-language-features/server
- more LSP stuff:
- signature help
- hover
diff --git a/ted.cfg b/ted.cfg
index 027730e..fd0efa1 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -94,6 +94,12 @@ lsp = "gopls"
[Java.core]
lsp = "jdtls"
+[JavaScript.core]
+lsp = "typescript-language-server --stdio"
+
+[TypeScript.core]
+lsp = "typescript-language-server --stdio"
+
[Python.core]
lsp = "pylsp"
@@ -184,6 +190,7 @@ Ctrl+Shift+r = :reload-all
# 10 Java
# 11 Go
# 12 ted.cfg
+# 13 TypeScript
# -1 Guess from the file extension (default)
Ctrl+Space = :autocomplete