mirror of
https://github.com/kristoferssolo/lualine-harpoon.nvim.git
synced 2025-10-21 19:50:33 +00:00
fix: readme
This commit is contained in:
parent
14ea315d83
commit
7f9e2dc1e5
31
README.md
31
README.md
@ -1,6 +1,6 @@
|
|||||||
# lualine-harpoon.nvim
|
# lualine-harpoon.nvim
|
||||||
|
|
||||||
![[assets/img/2025-05-21_12-16-25.webp]]
|

|
||||||
|
|
||||||
A tiny [Lualine](https://github.com/nvim-lualine/lualine.nvim) component for
|
A tiny [Lualine](https://github.com/nvim-lualine/lualine.nvim) component for
|
||||||
[ThePrimeagen/harpoon2](https://github.com/ThePrimeagen/harpoon).
|
[ThePrimeagen/harpoon2](https://github.com/ThePrimeagen/harpoon).
|
||||||
@ -50,26 +50,9 @@ require("lualine").setup({
|
|||||||
|
|
||||||
When you have Harpoon marks, you’ll see an indicator like `[2/5]` in your statusline.
|
When you have Harpoon marks, you’ll see an indicator like `[2/5]` in your statusline.
|
||||||
|
|
||||||
## Configuration
|
## Default Options
|
||||||
|
|
||||||
You can override plugin-wide defaults **before** calling `lualine.setup`:
|
You can pass options directly in your Lualine sections:
|
||||||
|
|
||||||
```lua
|
|
||||||
-- default configs
|
|
||||||
require("lualine-harpoon").setup({
|
|
||||||
symbol = {
|
|
||||||
open = "[",
|
|
||||||
close = "]",
|
|
||||||
separator = "/",
|
|
||||||
unknown = "?",
|
|
||||||
},
|
|
||||||
icon = "",
|
|
||||||
})
|
|
||||||
```
|
|
||||||
|
|
||||||
### Per-component Overrides
|
|
||||||
|
|
||||||
You can also pass options directly in your Lualine sections:
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
@ -77,7 +60,13 @@ require("lualine").setup({
|
|||||||
lualine_c = {
|
lualine_c = {
|
||||||
{
|
{
|
||||||
"harpoon",
|
"harpoon",
|
||||||
symbol = { open = "<", close = ">" },
|
symbol = {
|
||||||
|
open = "[",
|
||||||
|
close = "]",
|
||||||
|
separator = "/",
|
||||||
|
unknown = "?",
|
||||||
|
},
|
||||||
|
icon = "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user