diff options
| author | github-actions <github-actions@github.com> | 2023-01-24 15:15:53 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2023-01-24 15:15:53 +0000 |
| commit | 582842c158968a59ed5acf9439bc6eaf637f1839 (patch) | |
| tree | 7d96827391bb94a8f72c816acc1d876f23960ef0 | |
| parent | feat: add vtsls (#2419) (diff) | |
| download | nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar.gz nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar.bz2 nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar.lz nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar.xz nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.tar.zst nvim-lspconfig-582842c158968a59ed5acf9439bc6eaf637f1839.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 43 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 43 |
2 files changed, 86 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 5f8ea47a..a4782be0 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -206,6 +206,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [visualforce_ls](#visualforce_ls) - [vls](#vls) - [volar](#volar) +- [vtsls](#vtsls) - [vuels](#vuels) - [wgsl_analyzer](#wgsl_analyzer) - [yamlls](#yamlls) @@ -8805,6 +8806,48 @@ require'lspconfig'.volar.setup{} ``` +## vtsls + +https://github.com/yioneko/vtsls + +`vtsls` can be installed with npm: +```sh +npm install -g @vtsls/language-server +``` + +To configure a Typescript project, add a +[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) +or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to +the root of your project. +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.vtsls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "vtsls", "--stdio" } + ``` + - `filetypes` : + ```lua + { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" } + ``` + - `root_dir` : + ```lua + root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## vuels https://github.com/vuejs/vetur/tree/master/server diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 5f8ea47a..a4782be0 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -206,6 +206,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [visualforce_ls](#visualforce_ls) - [vls](#vls) - [volar](#volar) +- [vtsls](#vtsls) - [vuels](#vuels) - [wgsl_analyzer](#wgsl_analyzer) - [yamlls](#yamlls) @@ -8805,6 +8806,48 @@ require'lspconfig'.volar.setup{} ``` +## vtsls + +https://github.com/yioneko/vtsls + +`vtsls` can be installed with npm: +```sh +npm install -g @vtsls/language-server +``` + +To configure a Typescript project, add a +[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) +or [`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to +the root of your project. +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.vtsls.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "vtsls", "--stdio" } + ``` + - `filetypes` : + ```lua + { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" } + ``` + - `root_dir` : + ```lua + root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git") + ``` + - `single_file_support` : + ```lua + true + ``` + + ## vuels https://github.com/vuejs/vetur/tree/master/server |
