mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
README: add an example showing how to configure the menu width
Related-to: #142
This commit is contained in:
parent
d035ef263a
commit
7b7c06b6c9
13
README.md
13
README.md
@ -179,3 +179,16 @@ not necessarily error related.
|
|||||||
without much thinking. Some sort of middle ground between vim-test and just
|
without much thinking. Some sort of middle ground between vim-test and just
|
||||||
typing them into a terminal (configuring netflix's television project isn't
|
typing them into a terminal (configuring netflix's television project isn't
|
||||||
quite building and there are tons of ways to configure).
|
quite building and there are tons of ways to configure).
|
||||||
|
|
||||||
|
#### Use a dynamic width for the Harpoon popup menu
|
||||||
|
Sometimes the default width of `60` is not wide enough.
|
||||||
|
The following example demonstrates how to configure a custom width by setting
|
||||||
|
the menu's width relative to the current window's width.
|
||||||
|
|
||||||
|
```lua
|
||||||
|
require("harpoon").setup({
|
||||||
|
menu = {
|
||||||
|
width = vim.api.nvim_win_get_width(0) - 4,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user