nix-community / nixvim

Configure Neovim with Nix! [maintainers=@GaetanLepage, @traxys, @mattsturgeon, @khaneliman]
https://nix-community.github.io/nixvim
MIT License
1.77k stars 273 forks source link

plugins/whichkey: Support window and layout fields #1167

Closed alexpetrean80 closed 3 months ago

alexpetrean80 commented 8 months ago

In lua wc.setup can take some optional parameters that can change the way the helper looks, e.g.

wc.setup({
  window = { margin = {1, 0, 0, 0.8 }, border = "single"},
  layout = { height = {min = 4, max = 150}, align = "left" },
})

That seem to be missing from nixvim.plugins.which-key and they would be nice to have.

alexpetrean80 commented 8 months ago

After looking over plugins/utils/which-key I realised the options exist, they are just not documented.

khaneliman commented 3 months ago

Closing as supporting plugin's options in https://github.com/nix-community/nixvim/pull/1990 and also allowing undocumented options.