Update cbqn-rs to 0.1.1
nix: remove `import nixpkgs`
Update README.md
Nix is the preferred way to build the project. Install the Nix package manager and run:
nix --extra-experimental-features nix-command --extra-experimental-features flakes build 'sourcehut:~detegr/bqnlsp'
After the build, there will be a symlink to the Nix store called result
which will contain the binary in result/bin/bqnlsp
.
git submodule update --init --recursive
.make shared-o3
.build.bqn /path/to/CBQN
for automated build of the project where /path/to/CBQN
contains the prebuilt CBQN shared object.git submodule update --init --recursive
.make shared-o3
.RUSTFLAGS="-L /path/to/CBQN"
LD_LIBRARY_PATH="/path/to/CBQN"
(use DYLD_LIBRARY_PATH
on MacOS)cargo run --release --bin genhelp ./BQN ./lsp/src/help
cargo build --release --bin bqnlsp
bqnlsp
binary, distribute the CBQN shared object to the same directory and it'll load without messing with LD_LIBRARY_PATH
.genhelp
is a helper software that runs through BQN help files, runs the BQN code in them and places the evaluated expression results into the files.
lsp
is the language server implementation.
editors
contains rough templates for both nvim-lspconfig and vscode.
Build the project with the aforementioned instructions.
See the documentation for nvim-lspconfig or vscode to see how to set up an editor to use it with.