mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
Some explanation on how to configure splits & tabs.
This commit is contained in:
parent
747169f07a
commit
c57cb19951
21
README.md
21
README.md
@ -192,6 +192,27 @@ settings = {
|
|||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Extend
|
||||||
|
The 'extend' functionality can be used to add keymaps for opening files in splits & tabs.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
harpoon:extend({
|
||||||
|
UI_CREATE = function(cx)
|
||||||
|
vim.keymap.set("n", "<C-v>", function()
|
||||||
|
harpoon.ui:select_menu_item({ vsplit = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-x>", function()
|
||||||
|
harpoon.ui:select_menu_item({ split = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-t>", function()
|
||||||
|
harpoon.ui:select_menu_item({ tabedit = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
### Highlight Groups
|
### Highlight Groups
|
||||||
TODO: Fill in the idea that we will emit out window information
|
TODO: Fill in the idea that we will emit out window information
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user