とりあえず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,
|
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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue