feat(lsp): add LSP server with completion, definition, hover, diagnostics

This commit is contained in:
2026-06-07 18:20:35 +03:00
parent 0d7a30835f
commit b3af1208e8
2 changed files with 414 additions and 1 deletions
+7 -1
View File
@@ -5,7 +5,7 @@ BUILD_DIR := build
EXAMPLES := hello fibonacci factorial structs enums methods algebraic_enums generics generics_struct generic_infer generic_infer2 extend_generic pattern_matching strings strings2 map result_option try_operator ownership ctfe async concurrency os_time process json iter
.PHONY: all build dev debug test clean clean-all test-examples selfhost test-golden selfhost-loop
.PHONY: all build dev debug test clean clean-all test-examples selfhost test-golden selfhost-loop lsp
all: build
@@ -132,3 +132,9 @@ selfhost-loop: build
echo " C output was identical — ELF difference is likely linker non-determinism"; \
echo "=== Selfhost loop: C codegen deterministic ✓, ELF non-deterministic (expected) ==="; \
fi
lsp: tools/bux-lsp
@echo "LSP server ready at tools/bux-lsp"
tools/bux-lsp: tools/lsp_server.nim
cd tools && $(NIM) c -o:bux-lsp lsp_server.nim