snacks.nvim/lua/snacks
Tu Nguyen f0e47fd5dc
fix(win): take border into account for window position (#64)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->
The window position is not correctly centered when position is set to
`float` and border isn't `none`. I found [a similar
issue](https://github.com/folke/lazy.nvim/issues/812) in
[lazy.nvim](https://github.com/folke/lazy.nvim) along with [your
fix](451f217e9b)
there, so I have applied the same fix here. Thank you for your work!

## Related Issue(s)
https://github.com/folke/lazy.nvim/issues/812

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

### Before
<img width="2240" alt="image"
src="https://github.com/user-attachments/assets/6e5eeb7b-7993-4ab5-a40e-c77021a5ccb0">

### After
<img width="2240" alt="image"
src="https://github.com/user-attachments/assets/66ad76ab-8ca2-446f-afce-b18599313319">

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-11-12 19:57:01 +01:00
..
bigfile.lua docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
bufdelete.lua fix(bufdelete): opts.wipe. See #38 2024-11-09 19:19:53 +01:00
debug.lua fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
docs.lua ci: fix docgen titles 2024-11-10 08:03:16 +01:00
git.lua docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
gitbrowse.lua fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
init.lua fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
lazygit.lua docs: docgen 2024-11-10 08:03:44 +01:00
notifier.lua fix(notifier): take title/footer into account to determine notification width. Fixes #54 2024-11-11 11:07:28 +01:00
notify.lua docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
quickfile.lua docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
rename.lua fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
statuscolumn.lua docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
terminal.lua fix(terminal): pass a list of strings to termopen to prevent splitting. Fixes #59 2024-11-11 09:31:39 +01:00
toggle.lua docs: moar docs 2024-11-06 11:43:50 +01:00
win.lua fix(win): take border into account for window position (#64) 2024-11-12 19:57:01 +01:00
words.lua fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00