aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2021-01-04 06:49:29 +0000
committerGithub Actions <actions@github>2021-01-04 06:49:29 +0000
commit3e6a54305a0ebb1aa8d2471ffae36bde4671995c (patch)
treec63b06d8b2918f86835d84505482680491512f8c
parentccls: add example of init_options (diff)
downloadnvim-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.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/CONFIG.md b/CONFIG.md
index ef1aff3e..928d873c 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -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>