Last active
July 12, 2023 13:36
-
-
Save mengwangk/e403f1643576e61b31d7b8aa7c93adae to your computer and use it in GitHub Desktop.
Neovim PDE -Flutter, Kotlin, Ruby, and Other Languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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