From 564e5abb234143e9b0ff3b3737b2ffebbe2bfed8 Mon Sep 17 00:00:00 2001
From: iguanacucumber <you@example.com>
Date: Sun, 23 Mar 2025 14:14:13 +0400
Subject: [PATCH 1/5] fix: do not create a border for the backdrop with
 vim.o.winborder

---
 lua/lazy/view/float.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lua/lazy/view/float.lua b/lua/lazy/view/float.lua
index 4131d72..5fa36b8 100644
--- a/lua/lazy/view/float.lua
+++ b/lua/lazy/view/float.lua
@@ -149,6 +149,7 @@ function M:mount()
       row = 0,
       col = 0,
       style = "minimal",
+      border = "none",
       focusable = false,
       zindex = self.opts.zindex - 1,
     })

From 15f1f7690f04e7a5f5fee0b9922e577d4cdd0f30 Mon Sep 17 00:00:00 2001
From: iguanacucumber <you@example.com>
Date: Sun, 23 Mar 2025 15:16:43 +0400
Subject: [PATCH 2/5] feat(window): use vim.o.winborder as default window
 border

---
 lua/lazy/core/config.lua            | 2 +-
 lua/lazy/core/~/Downloads/lazy.nvim | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 160000 lua/lazy/core/~/Downloads/lazy.nvim

diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua
index 603dd1a..e3081cf 100644
--- a/lua/lazy/core/config.lua
+++ b/lua/lazy/core/config.lua
@@ -86,7 +86,7 @@ M.defaults = {
     size = { width = 0.8, height = 0.8 },
     wrap = true, -- wrap the lines in the ui
     -- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
-    border = "none",
+    border = nil,
     -- The backdrop opacity. 0 is fully opaque, 100 is fully transparent.
     backdrop = 60,
     title = nil, ---@type string only works when border is not "none"
diff --git a/lua/lazy/core/~/Downloads/lazy.nvim b/lua/lazy/core/~/Downloads/lazy.nvim
new file mode 160000
index 0000000..6c3bda4
--- /dev/null
+++ b/lua/lazy/core/~/Downloads/lazy.nvim
@@ -0,0 +1 @@
+Subproject commit 6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a

From 232be12a664e3ef1af86d20931cfc57d86b1d77b Mon Sep 17 00:00:00 2001
From: iguanacucumber <you@example.com>
Date: Sun, 23 Mar 2025 15:20:59 +0400
Subject: [PATCH 3/5] feat(window): use vim.o.winborder as default window
 border

---
 lua/lazy/core/~/Downloads/lazy.nvim | 1 -
 1 file changed, 1 deletion(-)
 delete mode 160000 lua/lazy/core/~/Downloads/lazy.nvim

diff --git a/lua/lazy/core/~/Downloads/lazy.nvim b/lua/lazy/core/~/Downloads/lazy.nvim
deleted file mode 160000
index 6c3bda4..0000000
--- a/lua/lazy/core/~/Downloads/lazy.nvim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a

From 34514b9fc43bc92bb89301817c274ed225d40aad Mon Sep 17 00:00:00 2001
From: iguanacucumber <you@example.com>
Date: Sun, 23 Mar 2025 15:27:17 +0400
Subject: [PATCH 4/5] feat(window): use vim.o.winborder as default window
 border

---
 lua/lazy/core/~/Downloads/lazy.nvim | 1 +
 lua/lazy/view/float.lua             | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 160000 lua/lazy/core/~/Downloads/lazy.nvim

diff --git a/lua/lazy/core/~/Downloads/lazy.nvim b/lua/lazy/core/~/Downloads/lazy.nvim
new file mode 160000
index 0000000..6c3bda4
--- /dev/null
+++ b/lua/lazy/core/~/Downloads/lazy.nvim
@@ -0,0 +1 @@
+Subproject commit 6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a
diff --git a/lua/lazy/view/float.lua b/lua/lazy/view/float.lua
index 5fa36b8..d9d6e7a 100644
--- a/lua/lazy/view/float.lua
+++ b/lua/lazy/view/float.lua
@@ -53,7 +53,7 @@ function M:init(opts)
   self.opts = vim.tbl_deep_extend("force", {
     size = Config.options.ui.size,
     style = "minimal",
-    border = Config.options.ui.border or "none",
+    border = Config.options.ui.border or vim.o.winborder or "none",
     backdrop = Config.options.ui.backdrop or 60,
     zindex = 50,
   }, opts or {})
@@ -66,7 +66,7 @@ function M:init(opts)
   self.win_opts = {
     relative = "editor",
     style = self.opts.style ~= "" and self.opts.style or nil,
-    border = self.opts.border,
+    border = self.opts.border or vim.o.winborder,
     zindex = self.opts.zindex,
     noautocmd = self.opts.noautocmd,
     title = self.opts.title,
@@ -92,7 +92,7 @@ function M:layout()
   self.win_opts.row = math.floor((vim.o.lines - self.win_opts.height) / 2)
   self.win_opts.col = math.floor((vim.o.columns - self.win_opts.width) / 2)
 
-  if self.opts.border ~= "none" then
+  if self.opts.border ~= "none" or vim.o.winborder then
     self.win_opts.row = self.win_opts.row - 1
     self.win_opts.col = self.win_opts.col - 1
   end

From ae2fe94a426297b425862d63a18064b48a35ceca Mon Sep 17 00:00:00 2001
From: iguanacucumber <you@example.com>
Date: Sun, 23 Mar 2025 15:27:37 +0400
Subject: [PATCH 5/5] feat(window): use vim.o.winborder as default window
 border

---
 lua/lazy/core/~/Downloads/lazy.nvim | 1 -
 1 file changed, 1 deletion(-)
 delete mode 160000 lua/lazy/core/~/Downloads/lazy.nvim

diff --git a/lua/lazy/core/~/Downloads/lazy.nvim b/lua/lazy/core/~/Downloads/lazy.nvim
deleted file mode 160000
index 6c3bda4..0000000
--- a/lua/lazy/core/~/Downloads/lazy.nvim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a