stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.73k stars 32 forks source link

Center input? #19

Closed kkharji closed 2 years ago

kkharji commented 2 years ago

Hello @stevearc, smart plugin. great work.

I'm currently testing it for inputs but I fail to make the window center, relative to the buffer or the window. I wonder there is away to do this or an option available

Thanks ❤️

stevearc commented 2 years ago

Yep, I could add that as an option. I'm about to travel, so I won't be able to get to it until next week, though.

kkharji commented 2 years ago

Yep, I could add that as an option. I'm about to travel, so I won't be able to get to it until next week, though.

That would be great. Take care @stevearc

stevearc commented 2 years ago

Added some more layout possibilities. You can now center the input window relative to the current window or to the entire editor with the relative option:

require('dressing').setup({
  input = {
    relative = 'win', -- or 'editor'
  },
}
kkharji commented 2 years ago

😍 Thanks @stevearc ❤️