{"id":24191280,"url":"https://github.com/andrem222/copilot-lualine","last_synced_at":"2025-04-07T07:13:05.302Z","repository":{"id":213399845,"uuid":"724638575","full_name":"AndreM222/copilot-lualine","owner":"AndreM222","description":"This is a component which makes a status icon for copilot.lua","archived":false,"fork":false,"pushed_at":"2025-03-30T14:12:19.000Z","size":118,"stargazers_count":87,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T15:23:32.409Z","etag":null,"topics":["component","copilot","copilot-nvim","lua","lualine","neovim-lua","neovim-plugin","neovim-statusline","nvim","statusline"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreM222.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-28T13:47:07.000Z","updated_at":"2025-03-30T14:12:22.000Z","dependencies_parsed_at":"2025-01-21T19:32:59.917Z","dependency_job_id":null,"html_url":"https://github.com/AndreM222/copilot-lualine","commit_stats":null,"previous_names":["andrem222/copilot-lualine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreM222%2Fcopilot-lualine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreM222%2Fcopilot-lualine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreM222%2Fcopilot-lualine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreM222%2Fcopilot-lualine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreM222","download_url":"https://codeload.github.com/AndreM222/copilot-lualine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608153,"owners_count":20965952,"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":["component","copilot","copilot-nvim","lua","lualine","neovim-lua","neovim-plugin","neovim-statusline","nvim","statusline"],"created_at":"2025-01-13T15:18:13.274Z","updated_at":"2025-04-07T07:13:05.276Z","avatar_url":"https://github.com/AndreM222.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copilot-lualine\nComponent for lualine with the purpose of recieving and previewing status of [copilot.lua](https://github.com/zbirenbaum/copilot.lua)\n\n`show_colors = false` - This are the default icons (All can be changed)\n\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Enabled-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Sleep-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Disabled-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Loading-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Warning-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Unknown-Preview.png\" /\u003e\n\n`show_colors = true` - This are the default colors (All can be changed)\n\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Enabled-Colored-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Sleep-Colored-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Disabled-Colored-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Loading-Colored-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Warning-Colored-Preview.png\" /\u003e\n\u003cimg style=\"padding-bottom:5px\" src=\"doc/Copilot-Unknown-Colored-Preview.png\" /\u003e\n\n#### Requirements\n- [x] [Neovim](https://neovim.io/)\n- [x] [Lualine](https://github.com/nvim-lualine/lualine.nvim)\n- [x] [Copilot.lua](https://github.com/zbirenbaum/copilot.lua)\n- [x] [Nerd Fonts](https://www.nerdfonts.com/#home) *- For Default Icons*\n\n## Installation\n\n#### Using lazy.nvim\n```lua\n{ 'AndreM222/copilot-lualine' }\n```\n#### Using packer.nvim\n```lua\nuse 'AndreM222/copilot-lualine'\n```\n\n#### Using vim-plug\n```lua\nPlug 'AndreM222/copilot-lualine'\n```\n\n## Setup\n\nAdd the component `copilot` to one of your lualine sections.\nexample:\n```lua\nlualine.setup({\n    options = {\n        icons_enabled = true,\n        theme = cozynight,\n        component_separators = { left = '', right = '' },\n        section_separators = { left = '', right = '' },\n        disabled_filetypes = {},\n        always_divide_middle = true\n    },\n    sections = {\n        lualine_a = { 'mode' },\n        lualine_b = { 'branch', 'diff',\n            {\n                'diagnostics',\n                sources = { \"nvim_diagnostic\" },\n                symbols = { error = ' ', warn = ' ', info = ' ', hint = ' ' }\n            }\n        },\n        lualine_c = { 'filename' },\n        lualine_x = { 'copilot' ,'encoding', 'fileformat', 'filetype' }, -- I added copilot here\n        lualine_y = { 'progress' },\n        lualine_z = { 'location' }\n    },\n    inactive_sections = {\n        lualine_a = {},\n        lualine_b = {},\n        lualine_c = { 'filename' },\n        lualine_x = { 'location' },\n        lualine_y = {},\n        lualine_z = {}\n    },\n    tabline = {},\n    extensions = {}\n})\n```\n\nCustomization is available. For example:\n\n```lua\nsections = {\n    lualine_x = {\n        {\n            'copilot',\n            -- Default values\n            symbols = {\n                status = {\n                    icons = {\n                        enabled = \" \",\n                        sleep = \" \",   -- auto-trigger disabled\n                        disabled = \" \",\n                        warning = \" \",\n                        unknown = \" \"\n                    },\n                    hl = {\n                        enabled = \"#50FA7B\",\n                        sleep = \"#AEB7D0\",\n                        disabled = \"#6272A4\",\n                        warning = \"#FFB86C\",\n                        unknown = \"#FF5555\"\n                    }\n                },\n                spinners = \"dots\", -- has some premade spinners\n                spinner_color = \"#6272A4\"\n            },\n            show_colors = false,\n            show_loading = true\n        },\n        'encoding',\n        'fileformat',\n        'filetype'\n    }\n}\n```\n\nIf you desire to use the colors of a highlight group, there is a function\nyou can call for that usage:\n\n```lua\nhl = {\n    enabled = require('copilot-lualine.colors').get_hl_value(0, \"DiagnosticWarn\", \"fg\"), -- hl value\n    sleep = \"#AEB7D0\",\n    disabled = \"#6272A4\",\n    warning = \"#FFB86C\",\n    unknown = \"#FF5555\"\n}\n```\n\nYou can also make your own spinner by replacing the string with a table:\n\n```lua\nspinners = {\n    \"✶\",\n    \"✸\",\n    \"✹\",\n    \"✺\",\n    \"✹\",\n    \"✷\",\n},\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eSome premade spinners\u003c/summary\u003e\n\n```lua\ndots = {\n    \"⠋\",\n    \"⠙\",\n    \"⠹\",\n    \"⠸\",\n    \"⠼\",\n    \"⠴\",\n    \"⠦\",\n    \"⠧\",\n    \"⠇\",\n    \"⠏\",\n},\ndots_negative = { -- dots2\n    \"⣾\",\n    \"⣽\",\n    \"⣻\",\n    \"⢿\",\n    \"⡿\",\n    \"⣟\",\n    \"⣯\",\n    \"⣷\",\n},\ndots_snake = { -- dots3\n    \"⠋\",\n    \"⠙\",\n    \"⠚\",\n    \"⠒\",\n    \"⠂\",\n    \"⠂\",\n    \"⠒\",\n    \"⠲\",\n    \"⠴\",\n    \"⠦\",\n    \"⠖\",\n    \"⠒\",\n    \"⠐\",\n    \"⠐\",\n    \"⠒\",\n    \"⠓\",\n    \"⠋\",\n},\ndots_footsteps = { -- dots10\n    \"⢄\",\n    \"⢂\",\n    \"⢁\",\n    \"⡁\",\n    \"⡈\",\n    \"⡐\",\n    \"⡠\",\n},\ndots_hop = { -- dots11\n    \"⠁\",\n    \"⠂\",\n    \"⠄\",\n    \"⡀\",\n    \"⢀\",\n    \"⠠\",\n    \"⠐\",\n    \"⠈\",\n},\nline = {\n    \"-\",\n    \"\\\\\",\n    \"|\",\n    \"/\",\n},\npipe = {\n    \"┤\",\n    \"┘\",\n    \"┴\",\n    \"└\",\n    \"├\",\n    \"┌\",\n    \"┬\",\n    \"┐\",\n},\ndots_ellipsis = { -- simpleDots\n    \".  \",\n    \".. \",\n    \"...\",\n    \"   \",\n},\ndots_scrolling = { -- simpleDotsScrolling\n    \".  \",\n    \".. \",\n    \"...\",\n    \" ..\",\n    \"  .\",\n    \"   \",\n},\nstar = {\n    \"✶\",\n    \"✸\",\n    \"✹\",\n    \"✺\",\n    \"✹\",\n    \"✷\",\n},\nflip = {\n    \"_\",\n    \"_\",\n    \"_\",\n    \"-\",\n    \"`\",\n    \"`\",\n    \"'\",\n    \"´\",\n    \"-\",\n    \"_\",\n    \"_\",\n    \"_\",\n},\nhamburger = {\n    \"☱\",\n    \"☲\",\n    \"☴\",\n},\ngrow_vertical = { -- growVertical\n    \"▁\",\n    \"▃\",\n    \"▄\",\n    \"▅\",\n    \"▆\",\n    \"▇\",\n    \"▆\",\n    \"▅\",\n    \"▄\",\n    \"▃\",\n},\ngrow_horizontal = { -- growHorizontal\n    \"▏\",\n    \"▎\",\n    \"▍\",\n    \"▌\",\n    \"▋\",\n    \"▊\",\n    \"▉\",\n    \"▊\",\n    \"▋\",\n    \"▌\",\n    \"▍\",\n    \"▎\",\n},\nnoise = {\n    \"▓\",\n    \"▒\",\n    \"░\",\n},\ndots_bounce = { -- bounce\n    \"⠁\",\n    \"⠂\",\n    \"⠄\",\n    \"⠂\",\n},\ntriangle = {\n    \"◢\",\n    \"◣\",\n    \"◤\",\n    \"◥\",\n},\narc = {\n    \"◜\",\n    \"◠\",\n    \"◝\",\n    \"◞\",\n    \"◡\",\n    \"◟\",\n},\ncircle = {\n    \"◡\",\n    \"⊙\",\n    \"◠\",\n},\nsquare_corners = { -- squareCorners\n    \"◰\",\n    \"◳\",\n    \"◲\",\n    \"◱\",\n},\ncircle_quarters = { -- circleQuarters\n    \"◴\",\n    \"◷\",\n    \"◶\",\n    \"◵\",\n},\ncircle_halves = { -- circleHalves\n    \"◐\",\n    \"◓\",\n    \"◑\",\n    \"◒\",\n},\ndots_toggle = { -- toggle\n    \"⊶\",\n    \"⊷\",\n},\nbox_toggle = { -- toggle2\n    \"▫\",\n    \"▪\",\n},\narrow = {\n    \"←\",\n    \"↖\",\n    \"↑\",\n    \"↗\",\n    \"→\",\n    \"↘\",\n    \"↓\",\n    \"↙\",\n},\nzip = { -- arrow3\n    \"▹▹▹▹▹\",\n    \"▸▹▹▹▹\",\n    \"▹▸▹▹▹\",\n    \"▹▹▸▹▹\",\n    \"▹▹▹▸▹\",\n    \"▹▹▹▹▸\",\n},\nbouncing_bar = { -- bouncingBar\n    \"[    ]\",\n    \"[=   ]\",\n    \"[==  ]\",\n    \"[=== ]\",\n    \"[ ===]\",\n    \"[  ==]\",\n    \"[   =]\",\n    \"[    ]\",\n    \"[   =]\",\n    \"[  ==]\",\n    \"[ ===]\",\n    \"[====]\",\n    \"[=== ]\",\n    \"[==  ]\",\n    \"[=   ]\",\n},\nbouncing_ball = { -- bouncingBall\n    \"( ●    )\",\n    \"(  ●   )\",\n    \"(   ●  )\",\n    \"(    ● )\",\n    \"(     ●)\",\n    \"(    ● )\",\n    \"(   ●  )\",\n    \"(  ●   )\",\n    \"( ●    )\",\n    \"(●     )\",\n},\nclock = {\n    \"🕛 \",\n    \"🕐 \",\n    \"🕑 \",\n    \"🕒 \",\n    \"🕓 \",\n    \"🕔 \",\n    \"🕕 \",\n    \"🕖 \",\n    \"🕗 \",\n    \"🕘 \",\n    \"🕙 \",\n    \"🕚 \",\n},\nearth = {\n    \"🌍 \",\n    \"🌎 \",\n    \"🌏 \",\n},\nmoon = {\n    \"🌑 \",\n    \"🌒 \",\n    \"🌓 \",\n    \"🌔 \",\n    \"🌕 \",\n    \"🌖 \",\n    \"🌗 \",\n    \"🌘 \",\n},\ndots_pulse = { -- point\n    \"∙∙∙\",\n    \"●∙∙\",\n    \"∙●∙\",\n    \"∙∙●\",\n    \"∙∙∙\",\n},\nmeter = { -- aesthetic\n    \"▰▱▱▱▱▱▱\",\n    \"▰▰▱▱▱▱▱\",\n    \"▰▰▰▱▱▱▱\",\n    \"▰▰▰▰▱▱▱\",\n    \"▰▰▰▰▰▱▱\",\n    \"▰▰▰▰▰▰▱\",\n    \"▰▰▰▰▰▰▰\",\n    \"▰▱▱▱▱▱▱\",\n}\n```\n\u003c/details\u003e\n\n## Contributors\n\nThanks everyone for the support\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/AndreM222/copilot-lualine/graphs/contributors\"\u003e\n        \u003cimg src=\"https://contrib.rocks/image?repo=AndreM222/copilot-lualine\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrem222%2Fcopilot-lualine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrem222%2Fcopilot-lualine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrem222%2Fcopilot-lualine/lists"}