とりあえずflutter2

This commit is contained in:
Rikuoh Tsujitani 2024-07-12 13:18:52 +09:00
parent eaec2231ab
commit 76efd69b99

View file

@ -362,7 +362,7 @@ require("lspsaga").setup({
enable = false,
},
diagnostic = {
diagnostic_only_current = false,
diagnostic_only_current = true,
},
})
@ -393,14 +393,10 @@ require("mason-nvim-dap").setup({
require("lspconfig").sourcekit.setup({
cmd = { "/usr/bin/sourcekit-lsp" },
filetypes = { "swift" },
on_attach = on_attach,
capabilities = capabilities,
})
require("lspconfig").dartls.setup({
cmd = { "dart", "language-server", "--protocol=lsp" },
filetypes = { "dart" },
on_attach = on_attach,
capabilities = capabilities,
init_options = {
closingLabels = true,
flutterOutline = true,
@ -408,12 +404,6 @@ require("lspconfig").dartls.setup({
outline = true,
suggestFromUnimportedLibraries = true,
},
settings = {
dart = {
completeFunctionCalls = true,
showTodos = true,
},
},
on_attach = function(client, bufnr)
end,
})