From 8dc45a5c142f0b5a5dd34e5cdba33217d5dc6a86 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 17 May 2023 15:15:21 +0800 Subject: fix(sourcekit): add buildserver.json and compile_commands as root pattern (#2620) --- lua/lspconfig/server_configurations/sourcekit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/sourcekit.lua b/lua/lspconfig/server_configurations/sourcekit.lua index d90b30ae..e6f6017d 100644 --- a/lua/lspconfig/server_configurations/sourcekit.lua +++ b/lua/lspconfig/server_configurations/sourcekit.lua @@ -4,7 +4,7 @@ return { default_config = { cmd = { 'sourcekit-lsp' }, filetypes = { 'swift', 'c', 'cpp', 'objective-c', 'objective-cpp' }, - root_dir = util.root_pattern('Package.swift', '.git'), + root_dir = util.root_pattern('Package.swift', 'buildServer.json', 'compile_commands.json', '.git'), }, docs = { description = [[ -- cgit v1.2.3-70-g09d2