When its works in editors like VScode or neovim fine then all is ok, and I think it will as it is not that much generic.
My RTree is very generic, and nimsuggest has big problems with it. I was told that neovim is not really blocked, as it uses async LSP, but of course all is delayed much. You may know that while RTree is designed for rectangles, it should work with point data fine. But your k-d-tree may work better for point data.