id = "swift" name = "Swift" extensions = ["swift", "swiftinterface"] line-comment = "//" block-comment = ["/*", "*/"] indent = { tab-size = 4, insert-spaces = true } ui-mode = "Swift" tree-sitter = "swift" [[language-servers]] name = "sourcekit-lsp" command = "sourcekit-lsp" # Xcode projects: sourcekit-lsp reads their build settings from a BSP config (`.bsp/*.json`, or the # legacy `buildServer.json`); the IDE offers to generate one (xcode-build-server, sourcekit-xcode-bsp). root-markers = [ "Package.swift", ".bsp", "buildServer.json", "compile_commands.json", ".sourcekit-lsp", "*.xcworkspace", "*.xcodeproj", ] install-hint = "Ships with the Swift toolchain / Xcode (xcrun sourcekit-lsp); https://www.swift.org/install" [debugger] adapter = "lldb-dap" command = "lldb-dap" install-hint = "Ships with the Swift toolchain (swift 6+) or LLVM; on macOS it is found by xcrun -f lldb-dap"