diff options
Diffstat (limited to '.config/nvim/lsp/tsp_server.lua')
-rw-r--r-- | .config/nvim/lsp/tsp_server.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lsp/tsp_server.lua b/.config/nvim/lsp/tsp_server.lua new file mode 100644 index 0000000..bfa8470 --- /dev/null +++ b/.config/nvim/lsp/tsp_server.lua @@ -0,0 +1,17 @@ +---@brief +--- +--- 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 +--- ``` + +---@type vim.lsp.Config +return { + cmd = { 'tsp-server', '--stdio' }, + filetypes = { 'typespec' }, + root_markers = { 'tspconfig.yaml', '.git' }, +} |