Skip to content

Commit

Permalink
fix: Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
skykosiner committed Feb 11, 2024
1 parent fedfcc6 commit d4846bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ harpoon:setup({

### Getting the current mark
If you want to be able to get the current mark for something like your
status line you just need to call `:lua require("harpoon"):list():get_current_status()"`.
status line you just need to call:

```lua
require("harpoon"):list():get_current_status()
```

The function will return the idx of the current mark if your current buffer is
a mark. Otherwise, it will return nil.
Expand Down

0 comments on commit d4846bf

Please sign in to comment.