fix: readme

This commit is contained in:
Kristofers Solo 2025-05-21 12:20:42 +03:00
parent 14ea315d83
commit 7f9e2dc1e5
Signed by: kristoferssolo
GPG Key ID: 74FF8144483D82C8

View File

@ -1,9 +1,9 @@
# lualine-harpoon.nvim # lualine-harpoon.nvim
![[assets/img/2025-05-21_12-16-25.webp]] ![](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).
Displays your current Harpoon mark as `[x/y]` in your statusline. Displays your current Harpoon mark as `[x/y]` in your statusline.
## Requirements ## Requirements
@ -50,26 +50,9 @@ require("lualine").setup({
When you have Harpoon marks, youll see an indicator like `[2/5]` in your statusline. When you have Harpoon marks, youll 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 = "󰀱",
}, },
}, },
}, },