diff options
| author | Peter Lithammer <peter.lithammer@gmail.com> | 2021-08-05 14:38:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 14:38:39 +0200 |
| commit | e55e01578a16029a41aa30424843373589edf831 (patch) | |
| tree | 2a2070859e75303b21bf2134cc3661dde8a0f789 /lua | |
| parent | [docgen] Update CONFIG.md (diff) | |
| parent | fix(ccls): add .ccls as root pattern (diff) | |
| download | nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar.gz nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar.bz2 nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar.lz nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar.xz nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.tar.zst nvim-lspconfig-e55e01578a16029a41aa30424843373589edf831.zip | |
Merge pull request #1108 from abgeana/master
update ccls root pattern
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/ccls.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lspconfig/ccls.lua b/lua/lspconfig/ccls.lua index bb9a02d1..0cb51385 100644 --- a/lua/lspconfig/ccls.lua +++ b/lua/lspconfig/ccls.lua @@ -6,7 +6,8 @@ configs.ccls = { cmd = { 'ccls' }, filetypes = { 'c', 'cpp', 'objc', 'objcpp' }, root_dir = function(fname) - return util.root_pattern('compile_commands.json', 'compile_flags.txt', '.git')(fname) or util.path.dirname(fname) + return util.root_pattern('compile_commands.json', '.ccls', 'compile_flags.txt', '.git')(fname) + or util.path.dirname(fname) end, }, docs = { @@ -37,7 +38,7 @@ lspconfig.ccls.setup { ]], default_config = { - root_dir = [[root_pattern("compile_commands.json", "compile_flags.txt", ".git") or dirname]], + root_dir = [[root_pattern("compile_commands.json", ".ccls", "compile_flags.txt", ".git") or dirname]], }, }, } |
