Skip to content

Commit

Permalink
fix(sourcekit-lsp): use git as last resort for sourcekit-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtyhabits97 committed Jun 4, 2024
1 parent 74e1480 commit c02275a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/sourcekit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ return {
root_dir = function(filename, _)
return util.root_pattern 'buildServer.json'(filename)
or util.root_pattern('*.xcodeproj', '*.xcworkspace')(filename)
or util.find_git_ancestor(filename)
-- better to keep it at the end, because some modularized apps contain multiple Package.swift files
or util.root_pattern('compile_commands.json', 'Package.swift')(filename)
or util.find_git_ancestor(filename)
end,
},
docs = {
Expand Down

0 comments on commit c02275a

Please sign in to comment.