mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 10:00:29 +00:00
feat: README.md update
This commit is contained in:
parent
6522b48a4e
commit
d867a33b8e
17
README.md
17
README.md
@ -49,10 +49,25 @@ You will want to add your style of remaps and such to your neovim dotfiles with
|
|||||||
the shortcuts you like. My shortcuts are for me. Me alone. Which also means
|
the shortcuts you like. My shortcuts are for me. Me alone. Which also means
|
||||||
they are designed with dvorak in mind (My layout btw, I use dvorak btw).
|
they are designed with dvorak in mind (My layout btw, I use dvorak btw).
|
||||||
|
|
||||||
|
### harpoon:setup
|
||||||
|
it is a requirement to call `harpoon:setup()`. This is required due to
|
||||||
|
autocmds setup.
|
||||||
|
|
||||||
|
### Basic Setup
|
||||||
|
Here is my basic setup
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
|
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon:setup()
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
|
||||||
|
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||||
|
vim.keymap.set("n", "<C-t>", function() harpoon.ui:select(2) end)
|
||||||
|
vim.keymap.set("n", "<C-n>", function() harpoon.ui:select(3) end)
|
||||||
|
vim.keymap.set("n", "<C-s>", function() harpoon.ui:select(4) end)
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⇁ Social
|
## ⇁ Social
|
||||||
|
Loading…
x
Reference in New Issue
Block a user