{"id":13761247,"url":"https://github.com/RRethy/nvim-hotline","last_synced_at":"2025-05-10T12:31:26.461Z","repository":{"id":104220281,"uuid":"351320709","full_name":"RRethy/nvim-hotline","owner":"RRethy","description":"Minimal Lua wrappers for 'statusline' and 'tabline'","archived":false,"fork":false,"pushed_at":"2022-01-22T16:43:45.000Z","size":2,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T08:23:02.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RRethy.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}},"created_at":"2021-03-25T05:35:48.000Z","updated_at":"2024-07-01T06:10:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2b73cb1-f65e-4dcd-ac8b-f1399a21c14b","html_url":"https://github.com/RRethy/nvim-hotline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RRethy%2Fnvim-hotline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RRethy%2Fnvim-hotline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RRethy%2Fnvim-hotline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RRethy%2Fnvim-hotline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RRethy","download_url":"https://codeload.github.com/RRethy/nvim-hotline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224958116,"owners_count":17398495,"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":[],"created_at":"2024-08-03T13:01:45.390Z","updated_at":"2024-11-16T18:32:28.383Z","avatar_url":"https://github.com/RRethy.png","language":"Lua","readme":"# nvim-hotline\n\nMinimal Lua wrappers for setting your `'statusline'` and `'tabline'`.\n\nThis will format the table/string/function to be passed to either option via standard mechanisms (`vim.o.statusline`, `vim.o.tabline`, etc.).\n\n## Usage\n\n```lua\nlocal hotline = require('hotline')\n\n--- hotline.format() takes X where X is a:\n---\n--- string\n--- function\n--- table that contains one or more X\nvim.o.statusline = hotline.format {\n    'provide a string',\n    'the string can have things like %f %l %c', -- see :h 'statusline'\n    function()\n        return 'provide a function'\n    end,\n    {\n        'provide another table',\n        function()\n            return 'some more text'\n        end\n    }\n}\n\n--- The same format is used for tabline so this works too:\nvim.o.tabline = hotline.format {\n    'same format',\n    function() return 'can be used' end,\n}\n\n--- You can use this to set the window local statusline too\nvim.wo.statusline = hotline.format {'local to window'}\n```\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRRethy%2Fnvim-hotline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRRethy%2Fnvim-hotline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRRethy%2Fnvim-hotline/lists"}