Skip to content

A neovim plugin that supports attaching to flutter and performing basic reloads

Notifications You must be signed in to change notification settings

rithikjain/flutter-launch.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

flutter-launch.nvim

Functionality

  • "FlutterAttach" - Attaches to an existing running flutter process
  • "FlutterRun" - Runs the flutter app
  • "FlutterHotRestart" - Triggers a restart
  • "FlutterHotReload" - Triggers a hot reload
  • "FlutterInfoToggle" - Toggles the panel that shows flutter logs from the process
  • "FlutterAttachToDebugger" - Attaches to current dart debugger using dap

Sample setup config with Lazy

return {
  "rithikjain/flutter-launch.nvim",
  dependencies = {
    "mfussenegger/nvim-dap",
  },
  keys = {
    { "<leader>aa", "<cmd>FlutterAttach<CR>",           desc = "Attach to flutter" },
    { "<leader>as", "<cmd>FlutterRun<CR>",              desc = "Run flutter" },
    { "<leader>ah", "<cmd>FlutterHotReload<CR>",        desc = "Flutter hot reload" },
    { "<leader>ar", "<cmd>FlutterHotRestart<CR>",       desc = "Flutter hot restart" },
    { "<leader>ax", "<cmd>FlutterDetach<CR>",           desc = "Flutter detach" },
    { "<leader>ai", "<cmd>FlutterInfoToggle<CR>",       desc = "Flutter info panel toggle" },
    { "<leader>ad", "<cmd>FlutterAttachToDebugger<CR>", desc = "Flutter attach debugger" },
  },
}

About

A neovim plugin that supports attaching to flutter and performing basic reloads

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages