Skip to content

Commit c5fd07b

Browse files
mochaaPquebn
andauthored
fix(float): respect latest option vim.o.winborder (#666)
#633, cherry picked from commit 6d7c4a5 ## Description Setting the latest neovim option `vim.o.winborder` causes `vim.api.nvim_open_win` to copy the option if the border is not defined. ## Screenshots before: ![image](https://github.com/user-attachments/assets/fe90701b-f0e9-43be-8403-673f5ff9d08a) after: ![image](https://github.com/user-attachments/assets/8adbc457-4507-4e96-8e15-8a4a863504bf) Co-authored-by: Quebn <gonzalesquebin@gmail.com>
1 parent c098362 commit c5fd07b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/trouble/view/window.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ function M:mount_float(opts)
311311
config.focusable = true
312312
config.height = opts.size.height <= 1 and math.floor(parent_size.height * opts.size.height) or opts.size.height
313313
config.width = opts.size.width <= 1 and math.floor(parent_size.width * opts.size.width) or opts.size.width
314+
config.border = opts.border or "none"
314315

315316
config.row = math.abs(opts.position[1]) <= 1 and math.floor((parent_size.height - config.height) * opts.position[1])
316317
or opts.position[1]

0 commit comments

Comments
 (0)