Skip to content
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

bug: Changing float.max_width and float.max_height is ugly #32

Closed
3 tasks done
budimanjojo opened this issue Jan 12, 2023 · 4 comments
Closed
3 tasks done

bug: Changing float.max_width and float.max_height is ugly #32

budimanjojo opened this issue Jan 12, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@budimanjojo
Copy link

budimanjojo commented Jan 12, 2023

Did you check the docs and existing issues?

  • I have read the docs
  • I have searched the existing issues

Neovim version (nvim -v)

0.8.2

Operating system/version

Linux

Describe the bug

Changing float max_height and max_width to >0 broke the float. It's not in the positioned right.

Steps To Reproduce

require("oil").setup({

  float = {
    -- Padding around the floating window
    padding = 2,
    max_width = 40,
    max_height = 40,
    border = "rounded",
    win_options = {
      winblend = 10,
    },
  },
})

Expected Behavior

The float should appear in the middle

Directory structure

No response

Repro

sorry I'm not doing this.

Did you check the bug with a clean config?

  • I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.

EDIT: I was typing in other place and somehow mixed it up here, updated the problem description :D

@budimanjojo budimanjojo added the bug Something isn't working label Jan 12, 2023
@stevearc
Copy link
Owner

Not sure exactly what your issue was, but I confirmed that the float was being positioned incorrectly. Was that what you were seeing?

@budimanjojo
Copy link
Author

Not sure exactly what your issue was, but I confirmed that the float was being positioned incorrectly. Was that what you were seeing?

Yes, it's being positioned at bottom left of the screen and not centered.

@stevearc
Copy link
Owner

still?

@budimanjojo
Copy link
Author

Latest commit fixed it! Thank you! I'll close this now.

budimanjojo added a commit to budimanjojo/nix-config that referenced this issue Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants