akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
935 stars 75 forks source link

[Discussion] How do i open __FLUTTER_DEV_LOG__ #281

Closed joeldegerman99 closed 10 months ago

joeldegerman99 commented 10 months ago

Hi,

I would like to know if there is a way to open the dev log if I accidentally closed it without restarting.

// Joel

Thesmader commented 10 months ago

@joeldegerman99 You can find the list of buffers by exeucting the :buffers command like below:

image

You can then use that information to reopen the buffer. Let's say you want to reopen the devlog buffer in a new tab, you can execute tabnew | buffer 16(16 is the buffer number from the list of buffers) or tabnew | buffer __FLUTTER_DEV_LOG__

FredrikMorstad commented 10 months ago

Building on what @Thesmader answered I created a binding for opening the dev log. This can be useful until #121 is finished.

vim.keymap.set({ "n" }, "fl", ":vnew | buffer __FLUTTER_DEV_LOG__<CR>", { remap = false, desc = "Open flutter dev log in vertical split" })

joeldegerman99 commented 10 months ago

I will close this, since it is not an issue per say. But thanks a lot guys, i am new to nvim and i am really grateful for the help