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