{"id":24837213,"url":"https://github.com/letieu/harpoon-lualine","last_synced_at":"2025-05-06T22:11:03.121Z","repository":{"id":227786646,"uuid":"772388846","full_name":"letieu/harpoon-lualine","owner":"letieu","description":"harpoon2 for lualine","archived":false,"fork":false,"pushed_at":"2024-09-11T07:19:11.000Z","size":76,"stargazers_count":151,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T19:17:09.775Z","etag":null,"topics":["harpoon","neovim-plugin","nvim","nvim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letieu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T05:04:36.000Z","updated_at":"2025-02-26T08:29:13.000Z","dependencies_parsed_at":"2024-04-13T07:29:35.616Z","dependency_job_id":"1b745daa-2df9-414f-9702-11be89bc0435","html_url":"https://github.com/letieu/harpoon-lualine","commit_stats":null,"previous_names":["letieu/harpoon-lualine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fharpoon-lualine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fharpoon-lualine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fharpoon-lualine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letieu%2Fharpoon-lualine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letieu","download_url":"https://codeload.github.com/letieu/harpoon-lualine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573171,"owners_count":20312882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["harpoon","neovim-plugin","nvim","nvim-plugin"],"created_at":"2025-01-31T05:53:34.901Z","updated_at":"2025-03-14T12:08:02.785Z","avatar_url":"https://github.com/letieu.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Harpoon Lualine Plugin\n\n![Screenshot 2024-03-15 at 12 47 08 PM](https://github.com/letieu/harpoon-lualine/assets/53562817/5d6f055f-de67-46dd-8b73-ecbf7a5dba5b)\n\n**Add a harpoon indicator to your Neovim Lualine!**\n\n## Features\n\n* Shows [Harpoon](https://github.com/ThePrimeagen/harpoon/tree/harpoon2) status in [Lualine](https://github.com/nvim-lualine/lualine.nvim).\n\n\n\n\u003e [!IMPORTANT]  \n\u003e Make sure to install [harpoon2](https://github.com/ThePrimeagen/harpoon/tree/harpoon2) , not harpoon on `master` branch\n\u003e\n\n\n## Installation\n\n* With **lazy.nvim**\n```lua\n  {\n    \"letieu/harpoon-lualine\",\n    dependencies = {\n      {\n        \"ThePrimeagen/harpoon\",\n        branch = \"harpoon2\",\n      }\n    },\n  }\n```\n* With **packer.nvim**\n```lua\n  use {\n    'letieu/harpoon-lualine',\n    opt = false,\n    requires = {{'ThePrimeagen/harpoon'}}\n  }\n\n```\n\n## Usage\n\nAdd this to your [Lualine](https://github.com/nvim-lualine/lualine.nvim) setup:\n\n```lua\nlualine_c = { \"harpoon2\" },\n```\n\n**Custom config**\n\n```lua\nlualine_c = {\n  {\n    \"harpoon2\",\n    icon = '♥',\n    indicators = { \"a\", \"s\", \"q\", \"w\" },\n    active_indicators = { \"A\", \"S\", \"Q\", \"W\" },\n    color_active = { fg = \"#00ff00\" },\n    _separator = \" \",\n    no_harpoon = \"Harpoon not loaded\",\n  },\n}\n\n```\n\n**Use function as indicator**\n\n```lua\n  -- harpoon_entry = {\n  --   context = { col = 0, row = 1 },\n  --   value = \"init.lua\"\n  -- }\n  local function get_harpoon_indicator(harpoon_entry)\n    return harpoon_entry.value\n  end\n\n  -- lualine setup\n  ...\n  active_indicators = {\n    get_harpoon_indicator,\n    get_harpoon_indicator,\n    get_harpoon_indicator,\n    get_harpoon_indicator,\n  },\n  ...\n```\n\n## How I use harpoon 💡\n\nBind harpoon mark to `a`, `s`, `q`, `w` and use `Ctrl` + `a`, `s`, `q`, `w` to jump to the mark.\n\n```lua\nvim.keymap.set(\"n\", \"\u003cC-a\u003e\", function() harpoon:list():select(1) end)\nvim.keymap.set(\"n\", \"\u003cC-s\u003e\", function() harpoon:list():select(2) end)\nvim.keymap.set(\"n\", \"\u003cC-q\u003e\", function() harpoon:list():select(3) end)\nvim.keymap.set(\"n\", \"\u003cC-w\u003e\", function() harpoon:list():select(4) end)\n```\n\nView current marks with lualine\n\n```lua\nlualine_c = { \n  '%=', -- make the indicator center\n  {\n    \"harpoon2\",\n    indicators = { \"a\", \"s\", \"q\", \"w\" },\n    active_indicators = { \"A\", \"S\", \"Q\", \"W\" },\n    _separator = \" \",\n  }\n}\n```\n\n**Enjoy!**\n\n**Note:** Customize indicator characters by editing the configuration.\n\n**Note:** To center the indicator, add a `%=`. For example: `lualine_c = { \"%=\", \"harpoon2\"},`\n\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://mairimashita.org/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/68560840?v=4?s=100\" width=\"100px;\" alt=\"Taken\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTaken\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/letieu/harpoon-lualine/commits?author=TakenMC\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://letieu.github.io\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/53562817?v=4?s=100\" width=\"100px;\" alt=\"Le Tieu\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eLe Tieu\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-letieu\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#ideas-letieu\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/simachri\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3276460?v=4?s=100\" width=\"100px;\" alt=\"simachri\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003esimachri\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/letieu/harpoon-lualine/commits?author=simachri\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.pdewey.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/57921252?v=4?s=100\" width=\"100px;\" alt=\"Patrick Dewey\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePatrick Dewey\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/letieu/harpoon-lualine/commits?author=ptdewey\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://mageowlstudios.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32573897?v=4?s=100\" width=\"100px;\" alt=\"Owen L.\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOwen L.\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/letieu/harpoon-lualine/commits?author=mageowl\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/hareki\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/81374684?v=4?s=100\" width=\"100px;\" alt=\"Nguyen Ngoc Minh Tu\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNguyen Ngoc Minh Tu\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/letieu/harpoon-lualine/commits?author=hareki\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fharpoon-lualine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletieu%2Fharpoon-lualine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletieu%2Fharpoon-lualine/lists"}