diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-07-06 13:25:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 13:25:18 +0900 |
| commit | 63527c33b51cbd6decdbf9a4285fd1b05be249b2 (patch) | |
| tree | b4a455b26d782a93d99a944b600b675cb613f90d /lua | |
| parent | Merge pull request #290 from kdheepak/kd/update-readme (diff) | |
| parent | Add link to CMake documentation in ccls.lua and clang.lua (diff) | |
| download | nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar.gz nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar.bz2 nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar.lz nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar.xz nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.tar.zst nvim-lspconfig-63527c33b51cbd6decdbf9a4285fd1b05be249b2.zip | |
Merge pull request #293 from MuAlphaOmegaEpsilon/readme-export-compile-commands
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/ccls.lua | 1 | ||||
| -rw-r--r-- | lua/nvim_lsp/clangd.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim_lsp/ccls.lua b/lua/nvim_lsp/ccls.lua index 67b65eda..32cc30e9 100644 --- a/lua/nvim_lsp/ccls.lua +++ b/lua/nvim_lsp/ccls.lua @@ -14,6 +14,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). ]]; default_config = { root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git")]]; diff --git a/lua/nvim_lsp/clangd.lua b/lua/nvim_lsp/clangd.lua index 47e00741..f369febb 100644 --- a/lua/nvim_lsp/clangd.lua +++ b/lua/nvim_lsp/clangd.lua @@ -46,6 +46,7 @@ https://clang.llvm.org/extra/clangd/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). ]]; default_config = { root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname]]; |
