From 6e191e4c520d1ad3e8a36d2b22248e433d2be1f7 Mon Sep 17 00:00:00 2001 From: MuAlphaOmegaEpsilon Date: Sun, 5 Jul 2020 15:12:41 +0200 Subject: Add link to CMake documentation in ccls.lua and clang.lua --- lua/nvim_lsp/ccls.lua | 1 + lua/nvim_lsp/clangd.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'lua/nvim_lsp') 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]]; -- cgit v1.2.3-70-g09d2