Skip to content

[FR} - Ability to set fixed height for __FLUTTER_DEV_LOG__ #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
p4-k4 opened this issue May 29, 2025 · 0 comments
Open

[FR} - Ability to set fixed height for __FLUTTER_DEV_LOG__ #474

p4-k4 opened this issue May 29, 2025 · 0 comments

Comments

@p4-k4
Copy link

p4-k4 commented May 29, 2025

Currently I'm using the following in my config:

  init = function()
    vim.api.nvim_create_autocmd("BufEnter", {
      pattern = "__FLUTTER_DEV_LOG__", -- Flutter log buffers have this pattern
      callback = function()
        vim.wo.winfixheight = true -- Lock height
      end,
    })
  end,

This locks the height according to what I've specified here:

    dev_log = {
      open_cmd = "botright 10split", -- command to use to open the log buffer
   }

The good thing about this is ff your terminal window resizes, the dev log buffer remains at its fixed height.

The problem:
Debugging flutter apps often require restarting or resizing the window of the application being debugged which if you're using a WTM can become super annoying having to manually resize the dev log window every time.

Would be super convenient if we're able to have this built in to the config opts for dev_log though.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant