aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2022-04-10 04:59:23 +0000
committergithub-actions <github-actions@github.com>2022-04-10 04:59:23 +0000
commit58518810d088cfd8dbd51b4773037c5b437336e2 (patch)
treefa4336feba02d0f83b25e311a7d8ba4e8dcef281
parentfix(clangd): update root-markers (#1826) (diff)
downloadnvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar.gz
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar.bz2
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar.lz
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar.xz
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.tar.zst
nvim-lspconfig-58518810d088cfd8dbd51b4773037c5b437336e2.zip
docs: update server_configurations.md
skip-checks: true
-rw-r--r--doc/server_configurations.md17
-rw-r--r--doc/server_configurations.txt17
2 files changed, 24 insertions, 10 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 270c7c24..52dfdc78 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -652,11 +652,9 @@ require'lspconfig'.ccls.setup{}
https://clangd.llvm.org/installation.html
-**NOTE:** Clang >= 9 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23).
+**NOTE:** Clang >= 11 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23).
-clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified
-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). Alternatively, you can use [Bear](https://github.com/rizsotto/Bear).
+clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson
@@ -682,7 +680,16 @@ require'lspconfig'.clangd.setup{}
```
- `root_dir` :
```lua
- root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname
+ root_pattern(
+ '.clangd',
+ '.clang-tidy',
+ '.clang-format',
+ 'compile_commands.json',
+ 'compile_flags.txt',
+ 'configure.ac',
+ '.git'
+ )
+
```
- `single_file_support` :
```lua
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 270c7c24..52dfdc78 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -652,11 +652,9 @@ require'lspconfig'.ccls.setup{}
https://clangd.llvm.org/installation.html
-**NOTE:** Clang >= 9 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23).
+**NOTE:** Clang >= 11 is recommended! See [this issue for more](https://github.com/neovim/nvim-lsp/issues/23).
-clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified
-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). Alternatively, you can use [Bear](https://github.com/rizsotto/Bear).
+clangd relies on a [JSON compilation database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) specified as compile_commands.json, see https://clangd.llvm.org/installation#compile_commandsjson
@@ -682,7 +680,16 @@ require'lspconfig'.clangd.setup{}
```
- `root_dir` :
```lua
- root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname
+ root_pattern(
+ '.clangd',
+ '.clang-tidy',
+ '.clang-format',
+ 'compile_commands.json',
+ 'compile_flags.txt',
+ 'configure.ac',
+ '.git'
+ )
+
```
- `single_file_support` :
```lua