Skip to content

bug: get_auto_pin doesn't seem to pick up on Lazy's float window #29

Description

@omerdn1

Neovim version (nvim -v)

0.9.5

Operating system/version

Macos

Describe the bug

Hi, love this plugin!

I was trying to fix an annoying behavior when using lazy + sessions.

Basically, if you reopen nvim and have an active session, the lazy float buffer will result to opening the other buffer in the float window.

I was trying to fix this like so:

          get_auto_pin = function(bufnr)
            if vim.bo[bufnr].filetype == 'lazy' then
              return true
            end
            return require('stickybuf').should_auto_pin(bufnr)
          end,

But the problem is the lazy buffer is not being picked up by the underlying BufEnter.
I know that lazy is doing a lot with that buffer (it's hidden, unlisted, etc..), so that is possibly the reason.

Is there a way to still apply pin buffer to the lazy buffer?

What is the severity of this bug?

minor (annoyance)

Steps To Reproduce

Use a session manager, add a new plugin to lazy. Have a file open.
Reopen neovim.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions