Skip to content

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

@p4-k4

Description

@p4-k4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions