This commit is contained in:
Regen
2020-08-22 15:15:45 +09:00
parent 87879ee5df
commit ef2c31c6a3

View File

@@ -64,5 +64,13 @@ if executable('cmake-language-server')
endif
```
### Configuration
* `buildDirectory`
This language server uses CMake's file API to get cached variables.
The API communicates using `<buildDirectory>/.cmake/api/`.
`buildDirectory` is relative path to the root uri of the workspace.
To configure the build tree, you need to run the cmake command such as `cmake .. -DFOO=bar`.
[coc.nvim]: https://github.com/neoclide/coc.nvim
[vim-lsp]: https://github.com/prabirshrestha/vim-lsp