Skip to content

Instantly share code, notes, and snippets.

@mary-ext
Created March 12, 2024 08:02
Show Gist options
  • Save mary-ext/64da77a8d4f602b821bb4bde3b0734bc to your computer and use it in GitHub Desktop.
Save mary-ext/64da77a8d4f602b821bb4bde3b0734bc to your computer and use it in GitHub Desktop.
TypeScript LSP server launcher, launches Deno's LSP server if deno.json is detected on project folder
#!/bin/bash
if [ -f deno.json ] || [ -f deno.jsonc ]; then
~/.deno/bin/deno lsp
else
typescript-language-server --stdio
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment