summaryrefslogtreecommitdiff
path: root/nvim/lsp/tsp_server.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/tsp_server.lua
Nixos
Diffstat (limited to 'nvim/lsp/tsp_server.lua')
-rwxr-xr-xnvim/lsp/tsp_server.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/nvim/lsp/tsp_server.lua b/nvim/lsp/tsp_server.lua
new file mode 100755
index 0000000..6e9b8d8
--- /dev/null
+++ b/nvim/lsp/tsp_server.lua
@@ -0,0 +1,15 @@
+---@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
+--- ```
+return {
+ cmd = { 'tsp-server', '--stdio' },
+ filetypes = { 'typespec' },
+ root_markers = { 'tspconfig.yaml', '.git' },
+}