Skip to content

Add layout.anchor option for configurable picker placement for Neovim plugin#399

Merged
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
n1ghtmare:layout-anchors
Apr 20, 2026
Merged

Add layout.anchor option for configurable picker placement for Neovim plugin#399
dmtrKovalenko merged 1 commit intodmtrKovalenko:mainfrom
n1ghtmare:layout-anchors

Conversation

@n1ghtmare
Copy link
Copy Markdown
Contributor

Currently the picker always opens centered in the editor. Some users (me... also see: #79) prefer a drawer-style layout anchored to the bottom left (like mini.pick) or other screen positions. Instead of only adding the option to anchor it to the bottom left like I prefer it, I added options to add it to:

  • top_left, top, top_right,
  • left, center, right
  • bottom_left, bottom, bottom_right

The only way to achieve this today is manually calculating layout.col and layout.row ratios, which is error-prone and doesn't account for the statusline, tabline, or command line height.

Manual layout.col and layout.row overrides continue to work and take precedence over the anchor defaults.

Here is a screenshot:

image

Comment thread lua/fff/picker_ui.lua
@dmtrKovalenko dmtrKovalenko merged commit 2201fae into dmtrKovalenko:main Apr 20, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants