とりあえずflutter2
This commit is contained in:
parent
eaec2231ab
commit
76efd69b99
1 changed files with 1 additions and 11 deletions
12
init.lua
12
init.lua
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue