diff --git a/README.md b/README.md index c066da4..d57a567 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,13 @@ Plug 'jessesimpson36/whereami.nvim' Then under your lua section in, add a mapping for it such as: ``` -vim.keymap.set("n", "w", "WhereAmI") +vim.keymap.set("n", "jw", "WhereAmI") + +function jumpy() + require("whereami").jumptopath(vim.fn.input("Where do you want to jump to?: ")) +end +vim.keymap.set("n", "jj", jumpy) + ``` Now whenever you hit `w`, it will call the WhereAmI function and you won't lose your way.