[LSP] Add sourcekit lsp for swift

This commit is contained in:
2025-10-11 10:09:08 +02:00
parent 9a3cad7676
commit 08f3141e55
2 changed files with 12 additions and 4 deletions

View File

@@ -21,7 +21,14 @@ lsp.config("cmake", {
on_attach = opts.on_attach, on_attach = opts.on_attach,
}) })
lsp.config("sourcekit", {
capabilities = opts.capabilities,
on_attach = opts.on_attach,
filetypes = { "swift" }
})
-- ── Enable configs ─────────────────────────────────────────────── -- ── Enable configs ───────────────────────────────────────────────
local enable = vim.lsp.enable local enable = vim.lsp.enable
enable("clangd") enable("clangd")
enable("cmake") enable("cmake")
enable("sourcekit")

View File

@@ -29,17 +29,18 @@ return {
"bashls", "bashls",
"clangd", "clangd",
"cmake", "cmake",
-- "cssls", "cssls",
"gopls", "gopls",
"html-lsp",
"hyprls", "hyprls",
"jdtls", "jdtls",
"latexindent", "latexindent",
"marksman", "marksman",
-- "lua_ls", "lua_ls",
-- "pyright", "pyright",
"rust_analyzer", "rust_analyzer",
"ruby_lsp", "ruby_lsp",
-- "ts_ls", "ts_ls",
"vue_ls", "vue_ls",
"verible", "verible",
}, },