akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Discussion] How do i open __FLUTTER_DEV_LOG__

joeldegerman99 opened this issue · comments

Hi,

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

// Joel

@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__

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" })

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