diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2022-04-25 10:38:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 10:38:28 -0400 |
| commit | 6b9d3d750ddc9a0a25763dccb4e85bc874f95a04 (patch) | |
| tree | e54fdc3355f42df1ec1d34cab1b8b70562e14c62 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar.gz nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar.bz2 nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar.lz nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar.xz nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.tar.zst nvim-lspconfig-6b9d3d750ddc9a0a25763dccb4e85bc874f95a04.zip | |
Revert "fix(ccls): remove .git from root_dir" (#1857)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/ccls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/ccls.lua b/lua/lspconfig/server_configurations/ccls.lua index 70490aa4..dd642db2 100644 --- a/lua/lspconfig/server_configurations/ccls.lua +++ b/lua/lspconfig/server_configurations/ccls.lua @@ -4,7 +4,7 @@ return { default_config = { cmd = { 'ccls' }, filetypes = { 'c', 'cpp', 'objc', 'objcpp' }, - root_dir = util.root_pattern('compile_commands.json', '.ccls'), + root_dir = util.root_pattern('compile_commands.json', '.ccls', '.git'), offset_encoding = 'utf-32', -- ccls does not support sending a null root directory single_file_support = false, @@ -37,7 +37,7 @@ lspconfig.ccls.setup { ]], default_config = { - root_dir = [[root_pattern("compile_commands.json", ".ccls")]], + root_dir = [[root_pattern("compile_commands.json", ".ccls", ".git")]], }, }, } |
