diff options
author | pommicket <pommicket@gmail.com> | 2022-12-27 15:14:58 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-27 15:14:58 -0500 |
commit | 8e75a61add3c8023d9a40a63032ee9b4fa52c6ca (patch) | |
tree | ae6c80bedf180e420b509595a297c397e8c3c099 | |
parent | 6f208a42ce93dfac6f16cb16fdc7a4e6d37e4e7d (diff) |
typescript-language-server
-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 |