feat: update lualine, clipboard and changed startup dashboard (#13)
Updated Lualine with mode icon, moved git diff and added a icon displaying Github copilot status. Changed setting to default yank to system clipboard Updated startup dashboard
This commit is contained in:
parent
b124c0a47a
commit
8b7bc83bce
3 changed files with 33 additions and 31 deletions
|
|
@ -14,6 +14,7 @@ _: {
|
|||
lualine_a = [
|
||||
{
|
||||
name = "mode";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
lualine_b = [
|
||||
|
|
@ -21,6 +22,16 @@ _: {
|
|||
name = "branch";
|
||||
icon = "";
|
||||
}
|
||||
{
|
||||
name = "diff";
|
||||
extraConfig = {
|
||||
symbols = {
|
||||
added = " ";
|
||||
modified = " ";
|
||||
removed = " ";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
lualine_c = [
|
||||
{
|
||||
|
|
@ -58,28 +69,18 @@ _: {
|
|||
name = "navic";
|
||||
}
|
||||
{
|
||||
name = "diff";
|
||||
extraConfig = {
|
||||
symbols = {
|
||||
added = " ";
|
||||
modified = " ";
|
||||
removed = " ";
|
||||
};
|
||||
source = {
|
||||
__raw = ''
|
||||
function()
|
||||
local gitsings = vim.b.gitsigns_status_dict
|
||||
if gitsigns then
|
||||
return {
|
||||
added = gitigns.added,
|
||||
modified = gitigns.changed,
|
||||
removed = gitigns.removed
|
||||
}
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
name.__raw = ''
|
||||
function()
|
||||
local icon = " "
|
||||
local status = require("copilot.api").status.data
|
||||
return icon .. (status.message or " ")
|
||||
end,
|
||||
|
||||
cond = function()
|
||||
local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 })
|
||||
return ok and #clients > 0
|
||||
end,
|
||||
'';
|
||||
}
|
||||
];
|
||||
lualine_y = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue