Skip to content

Commit

Permalink
docs: install instructions for lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 22, 2023
1 parent 5a6c954 commit 19e7ba2
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,19 @@ Install the plugin with your preferred package manager:
### [lazy.nvim](https://github.com/folke/lazy.nvim)

```lua
require("lazy").setup({
{
"folke/which-key.nvim",
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require("which-key").setup({
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
})
end,
},
})
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
}
```

### [packer](https://github.com/wbthomason/packer.nvim)
Expand Down

0 comments on commit 19e7ba2

Please sign in to comment.