aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/sourcekit.lua
diff options
context:
space:
mode:
authorBen Lu <ayroblu@gmail.com>2025-11-15 19:44:24 +0000
committerGitHub <noreply@github.com>2025-11-15 11:44:24 -0800
commit29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d (patch)
treee8b3056f1afc3ee8b59a13877dcf0d7134cf24ef /lsp/sourcekit.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar.gz
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar.bz2
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar.lz
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar.xz
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.tar.zst
nvim-lspconfig-29139c1fbf8c63b8e9c4ebe4e20f1a381ec66b2d.zip
feat(sourcekit): update root_dir check for .bsp #4186
Mirrors: https://github.com/swiftlang/vscode-swift/pull/1865
Diffstat (limited to 'lsp/sourcekit.lua')
-rw-r--r--lsp/sourcekit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/sourcekit.lua b/lsp/sourcekit.lua
index 11d7b02f..65e8555f 100644
--- a/lsp/sourcekit.lua
+++ b/lsp/sourcekit.lua
@@ -13,7 +13,7 @@ return {
root_dir = function(bufnr, on_dir)
local filename = vim.api.nvim_buf_get_name(bufnr)
on_dir(
- util.root_pattern 'buildServer.json'(filename)
+ util.root_pattern('buildServer.json', '.bsp')(filename)
or util.root_pattern('*.xcodeproj', '*.xcworkspace')(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)