diff options
| -rw-r--r-- | lsp/tsgo.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lsp/tsgo.lua b/lsp/tsgo.lua new file mode 100644 index 00000000..14774487 --- /dev/null +++ b/lsp/tsgo.lua @@ -0,0 +1,19 @@ +---@brief +--- +--- https://github.com/microsoft/typescript-go +--- +--- `typescript-go` is experimental port of the TypeScript compiler (tsc) and language server (tsserver) to the Go programming language. +--- +--- `tsgo` can be installed via npm `npm install @typescript/native-preview`. +return { + cmd = { 'tsgo', '--lsp', '--stdio' }, + filetypes = { + 'javascript', + 'javascriptreact', + 'javascript.jsx', + 'typescript', + 'typescriptreact', + 'typescript.tsx', + }, + root_markers = { 'tsconfig.json', 'jsconfig.json', 'package.json', '.git' }, +} |
