aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/tsp_server.lua
blob: bfa847034159c3f9844b544b7c4d864ffdf42346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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' },
}