swift test

This commit is contained in:
Rikuoh Tsujitani 2024-05-16 14:09:56 +09:00
parent 46f6ff8f38
commit 4960b9087b
Signed by: riq0h
GPG key ID: 010F09DEA298C717

View file

@ -152,7 +152,7 @@ require("lazy").setup({
{ "nvimtools/none-ls.nvim", event = "LspAttach" }, { "nvimtools/none-ls.nvim", event = "LspAttach" },
{ "mfussenegger/nvim-dap", event = "LspAttach" }, { "mfussenegger/nvim-dap", event = "LspAttach" },
{ "rcarriga/nvim-dap-ui", event = "LspAttach" }, { "rcarriga/nvim-dap-ui", event = "LspAttach" },
{ "nvim-neotest/nvim-nio", event = "LspAttach" }, { "nvim-neotest/nvim-nio", event = "LspAttach" },
{ "theHamsta/nvim-dap-virtual-text", config = true, event = "LspAttach" }, { "theHamsta/nvim-dap-virtual-text", config = true, event = "LspAttach" },
{ "suketa/nvim-dap-ruby", config = true, ft = "ruby" }, { "suketa/nvim-dap-ruby", config = true, ft = "ruby" },
{ "leoluz/nvim-dap-go", ft = "go" }, { "leoluz/nvim-dap-go", ft = "go" },
@ -389,6 +389,12 @@ require("mason-nvim-dap").setup({
ensure_installed = {}, ensure_installed = {},
handlers = {}, handlers = {},
}) })
require("lspconfig").sourcekit.setup({
cmd = { "/usr/bin/sourcekit-lsp" },
filetypes = { "swift" },
on_attach = on_attach,
capabilities = capabilities,
})
require("mason-lspconfig").setup() require("mason-lspconfig").setup()
require("mason-lspconfig").setup_handlers({ require("mason-lspconfig").setup_handlers({
function(server_name) function(server_name)
@ -638,7 +644,7 @@ cmp.setup({
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item(), ["<C-n>"] = cmp.mapping.select_next_item(),
["<C-p>"] = cmp.mapping.select_prev_item(), ["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-b>"] = cmp.mapping.scroll_docs(-4), ["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),