Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Last active July 12, 2023 13:36
Show Gist options
  • Save mengwangk/e403f1643576e61b31d7b8aa7c93adae to your computer and use it in GitHub Desktop.
Save mengwangk/e403f1643576e61b31d7b8aa7c93adae to your computer and use it in GitHub Desktop.
Neovim PDE -Flutter, Kotlin, Ruby, and Other Languages
if not require("config").pde.flutter then
return {}
end
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, { "dart" })
end,
},
{
"akinsho/flutter-tools.nvim",
event = "VeryLazy",
opts = function()
local line = { "🭽", "▔", "🭾", "▕", "🭿", "▁", "🭼", "▏" }
return {
ui = { border = line },
debugger = {
enabled = false,
run_via_dap = false,
exception_breakpoints = {},
},
outline = { auto_open = false },
decorations = {
statusline = { device = true, app_version = true },
},
widget_guides = { enabled = true, debug = false },
dev_log = { enabled = true, open_cmd = "tabedit" },
lsp = {
color = {
enabled = true,
background = true,
virtual_text = false,
},
settings = {
showTodos = false,
renameFilesWithClasses = "always",
updateImportsOnRename = true,
completeFunctionCalls = true,
lineLength = 100,
},
},
}
end,
dependencies = {
{ "RobertBrunhage/flutter-riverpod-snippets" },
},
},
{
"nvim-neotest/neotest",
dependencies = {
{ "sidlatau/neotest-dart" },
},
opts = function(_, opts)
vim.list_extend(opts.adapters, {
require "neotest-dart" { command = "flutter" },
})
end,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment