diff options
| author | Gonzalo <gonzalorehu@gmail.com> | 2024-06-05 00:59:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-05 13:59:38 +0800 |
| commit | cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2 (patch) | |
| tree | 7e278f5f9f18c848a9340a6dcff4bb0cf3d67664 | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar.gz nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar.bz2 nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar.lz nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar.xz nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.tar.zst nvim-lspconfig-cf72c64fa14e05a78a6c1fca274ec85b3d1dd0a2.zip | |
fix(sourcekit-lsp): use git as last resort for sourcekit-lsp. (#3192)
* fix(sourcekit-lsp): use git as last resort for sourcekit-lsp
* fix: updated documentation for sourcekit-lsp as well
| -rw-r--r-- | lua/lspconfig/server_configurations/sourcekit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/sourcekit.lua b/lua/lspconfig/server_configurations/sourcekit.lua index f5ce4130..a906f083 100644 --- a/lua/lspconfig/server_configurations/sourcekit.lua +++ b/lua/lspconfig/server_configurations/sourcekit.lua @@ -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 = { @@ -19,7 +19,7 @@ https://github.com/apple/sourcekit-lsp Language server for Swift and C/C++/Objective-C. ]], default_config = { - root_dir = [[root_pattern("buildServer.json", "*.xcodeproj", "*.xcworkspace", ".git", "compile_commands.json", "Package.swift")]], + root_dir = [[root_pattern("buildServer.json", "*.xcodeproj", "*.xcworkspace", "compile_commands.json", "Package.swift", ".git")]], }, }, } |
