which-key.nvim icon indicating copy to clipboard operation
which-key.nvim copied to clipboard

Extend default setup

Open n10u53 opened this issue 3 years ago • 1 comments

Hi, I was wondering is there a way to change only one configuration option when setting up which-key?

In my case I want to retain all the defaults but change window.position to 'top'. I know you can extend/merge tables in lua to do this but how would I get a table of the default config in the first place?

n10u53 avatar Jun 06 '22 20:06 n10u53

This is already the default behavior, you should be able to simply do:

require("which-key").setup {
  window = {
    position = "top",
  },
}

bew avatar Jun 06 '22 20:06 bew