Skip to content

Commit 3f48dbd

Browse files
author
Marc Jakobi
committed
docs(readme): use vim.keymap.set in example
1 parent 1e972f4 commit 3f48dbd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ FFF.nvim requires:
5555
opts = { -- (optional)
5656
-- pass here all the options
5757
},
58-
keys = { -- (optional)
59-
{
60-
"ff", -- try it if you didn't it is a banger keybinding for a picker
61-
function()
62-
require("fff").find_files() -- or find_in_git_root() if you only want git files
63-
end,
64-
desc = "Open file picker",
65-
},
66-
},
58+
-- No need to lazy-load with lazy.nvim.
59+
-- This plugin initializes itself lazily.
60+
lazy = false,
61+
init = function()
62+
-- try it if you didn't it is a banger keybinding for a picker
63+
vim.keymap.set("n", "ff", function()
64+
require("fff").find_files() -- or find_in_git_root() if you only want git files
65+
end, { desc = "Open file picker" })
66+
end,
6767
}
6868
```
6969

0 commit comments

Comments
 (0)