Skip to content

Commit b4c0a3b

Browse files
committed
Update info on coq-lsp via nix usage
1 parent 3aff82a commit b4c0a3b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,19 @@ For more information on how to install `coq-lsp` please refer to [coq-lsp](https
8383

8484
Either way around, if the [coq-lsp](https://github.com/ejgallego/coq-lsp) extension works well and you can see the goals and theorems in the VSCode, then `CoqPilot` should work as well. However, using [coq-lsp](https://github.com/ejgallego/coq-lsp) as a plugin for Coq support is not mandatory for `CoqPilot` to work.
8585

86-
If your installation of `coq-lsp` is not in the default path, you can specify the path to the `coq-lsp` server in the settings using the `coqpilot.coqLspServerPath` setting. Default value should work well for most of the cases.
86+
If your installation of `coq-lsp` is not in the default path, you can specify the path to the `coq-lsp` server in the settings using the `coqpilot.coqLspServerPath` setting. Default value should work well for `opam`.
87+
88+
**IMPORTANT**: If you are using `nix` in your project, make sure to **UPDATE** the path of the `coq-lsp` server in the settings. The default path is set to `coq-lsp`, which is the default path for `opam`. If you are using `nix`, you should run the following command from inside of the `nix-shell`:
89+
```bash
90+
which coq-lsp
91+
```
92+
And then copy the path to the `coq-lsp` server and paste it into the `coqpilot.coqLspServerPath` setting.
93+
94+
In the benchmark the same rule applies, but the path to the `coq-lsp` server should be set as an environment variable `COQ_LSP_PATH`:
95+
```bash
96+
export COQ_LSP_PATH=$(which coq-lsp)
97+
```
98+
8799

88100
### Building locally
89101

0 commit comments

Comments
 (0)