diff options
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | ted.cfg | 7 |
3 files changed, 15 insertions, 5 deletions
@@ -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) @@ -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 @@ -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 |