| .. | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
gotlin-lsp
Minimal stdio language server for .gt files.
Current support:
initializeshutdownexittextDocument/didOpentextDocument/didChangetextDocument/didClose- publish diagnostics from the existing Gotlin parser/code generator
textDocument/hoverfor packages, imports, and top-level functionstextDocument/definitionfor imported namespaces and top-level functions- structured resolver/type diagnostics from
lang.Analyze, including package-context symbols - optional fallback to
goplsfor hover/definition on Go-imported symbols
Build:
go build -o ./bin/gotlin-lsp ./cmd/gotlin-lsp
Use your editor's custom LSP configuration to launch:
./bin/gotlin-lsp
gopls bridge
If gopls is installed, gotlin-lsp will try to use it as a fallback for hover and definition on Go-imported symbols.
You can set an explicit path with:
GOTLIN_GOPLS_PATH=/absolute/path/to/gopls ./bin/gotlin-lsp