Skip to content

Commit

Permalink
Revert "fix(ccls): remove .git from root_dir" (neovim#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlbach authored Apr 25, 2022
1 parent 15a2ecd commit 6b9d3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/server_configurations/ccls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")]],
},
},
}

0 comments on commit 6b9d3d7

Please sign in to comment.