Skip to content

Commit

Permalink
Remove Copilot swaperoo
Browse files Browse the repository at this point in the history
  • Loading branch information
tarebyte committed Jun 11, 2024
1 parent 5d2ab3f commit dfa7a24
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .config/nvim/lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,36 +103,9 @@ return {
end,
padding = { left = 0, right = 0 },
},
{
"filetype",
color = { bg = vim.g.base16_gui01 },
},
}

-- Remove Copilot status
local copilot = table.remove(opts.sections.lualine_x, 2)

local copilotIcons = {
[""] = require("lazyvim.config").icons.kinds.Copilot,
["Normal"] = require("lazyvim.config").icons.kinds.Copilot,
["Warning"] = "",
["InProgress"] = "",
}

copilot[1] = function()
local status = require("copilot.api").status.data
local icon = copilotIcons[status.status] or copilotIcons[""]

return icon .. (status.message or "")
end

copilot.color = {
fg = (copilot.color() or vim.g.base16_gui05),
bg = vim.g.base16_gui01,
}
copilot.padding = { left = 1, right = 1 }

opts.sections.lualine_z = { copilot }
opts.sections.lualine_z = { "location" }

return opts
end,
Expand Down

0 comments on commit dfa7a24

Please sign in to comment.