feat: floating window max width/height can be percentages (#553)

This commit is contained in:
abdennourzahaf 2025-01-08 04:07:22 +01:00 committed by GitHub
parent 6290ba1dc2
commit 1df90faf92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 2 deletions

View file

@ -256,6 +256,7 @@ require("oil").setup({
float = {
-- Padding around the floating window
padding = 2,
-- max_width and max_height can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
max_width = 0,
max_height = 0,
border = "rounded",