aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorIgor Lacerda <84649544+igorlfs@users.noreply.github.com>2021-10-16 23:45:02 -0300
committerGitHub <noreply@github.com>2021-10-16 19:45:02 -0700
commit4df7591d78b20c8f31dd85b946cc3833674c121d (patch)
tree8e2c4b64d5d7ed4ef11cdef10c4743d6eb5c49bd /lua
parentchore: update minimal init.lua to use format func (#1314) (diff)
downloadnvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar.gz
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar.bz2
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar.lz
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar.xz
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.tar.zst
nvim-lspconfig-4df7591d78b20c8f31dd85b946cc3833674c121d.zip
docs: mention Bear can generate compile_commands.json (#1318)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/ccls.lua2
-rw-r--r--lua/lspconfig/clangd.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/ccls.lua b/lua/lspconfig/ccls.lua
index 0cff78e1..d7170662 100644
--- a/lua/lspconfig/ccls.lua
+++ b/lua/lspconfig/ccls.lua
@@ -16,7 +16,7 @@ https://github.com/MaskRay/ccls/wiki
ccls 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).
+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).
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:
diff --git a/lua/lspconfig/clangd.lua b/lua/lspconfig/clangd.lua
index e8876af6..0e6543a9 100644
--- a/lua/lspconfig/clangd.lua
+++ b/lua/lspconfig/clangd.lua
@@ -68,7 +68,7 @@ https://clangd.llvm.org/installation.html
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).
+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).
]],
default_config = {
root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname]],