diff options
| author | Hilmar Wiegand <me@hwgnd.de> | 2024-04-03 07:39:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-03 13:39:59 +0800 |
| commit | 3e267dbf54f58826b13113133ef91fcf1c336eb0 (patch) | |
| tree | 3b34fdc6b5ba349f116ac53f038eb5e5668fcea3 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar.gz nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar.bz2 nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar.lz nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar.xz nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.tar.zst nvim-lspconfig-3e267dbf54f58826b13113133ef91fcf1c336eb0.zip | |
feat: add tsp-server support (#3093)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/tsp_server.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/tsp_server.lua b/lua/lspconfig/server_configurations/tsp_server.lua new file mode 100644 index 00000000..3cb7e420 --- /dev/null +++ b/lua/lspconfig/server_configurations/tsp_server.lua @@ -0,0 +1,24 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'tsp-server', '--stdio' }, + filetypes = { 'typespec' }, + root_dir = util.root_pattern('tspconfig.yaml', '.git'), + }, + docs = { + description = [[ +https://github.com/microsoft/typespec + +The language server for TypeSpec, a language for defining cloud service APIs and shapes. + +`tsp-server` can be installed together with the typespec compiler via `npm`: +```sh +npm install -g @typespec/compiler +``` +]], + default_config = { + root_dir = [[util.root_pattern("tspconfig.yaml", ".git")]], + }, + }, +} |
