{
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"]
},
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
}
}
vim coc 인스톨 중인데 여기서 rootPatterns가 뭔가요??
Language Server가 어느 폴더를 기준으로 할건지 결정하는 패턴 LSP를 실행한 gopls 면 go.mod 파일을 포함하는 상위폴더를 root로 두고 실행될거임 없으면 .vim폴더, .git폴더, .hg폴더 이런식으로 fallback해서 매칭 - dc App
LSP를 실행한 현재 파일 혹은 폴더 기준으로 - dc App
아자 회원님, 이해를 도와주셔서 감사합니다