diff options
| author | Github Actions <actions@github> | 2021-01-04 06:49:29 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2021-01-04 06:49:29 +0000 |
| commit | 3e6a54305a0ebb1aa8d2471ffae36bde4671995c (patch) | |
| tree | c63b06d8b2918f86835d84505482680491512f8c | |
| parent | ccls: add example of init_options (diff) | |
| download | nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar.gz nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar.bz2 nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar.lz nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar.xz nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.tar.zst nvim-lspconfig-3e6a54305a0ebb1aa8d2471ffae36bde4671995c.zip | |
[docgen] Update README.md
skip-checks: true
| -rw-r--r-- | CONFIG.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -141,6 +141,25 @@ ccls relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCom as compile_commands.json or, for simpler projects, a compile_flags.txt. For details on how to automatically generate one using CMake look [here](https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html). +Customization options are passed to ccls at initialization time via init_options, a list of available options can be found [here](https://github.com/MaskRay/ccls/wiki/Customization#initialization-options). For example: + +```lua +local lspconfig = require'lspconfig' +lspconfig.ccls.setup { + init_options = { + compilationDatabaseDirectory = "build"; + index = { + threads = 0; + }; + clang = { + excludeArgs = { "-frounding-math"} ; + }; + } +} + +``` + + This server accepts configuration via the `settings` key. <details><summary>Available settings:</summary> |
