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:
Roel de Cort 2024-07-08 00:17:29 +02:00 committed by GitHub
parent b124c0a47a
commit 8b7bc83bce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 31 deletions

View file

@ -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 = [

View file

@ -39,32 +39,32 @@
[
" Find File"
"Telescope find_files"
"<leader>ff"
"ff"
]
[
"󰍉 Find Word"
"Telescope live_grep"
"<leader>fr"
"fr"
]
[
" Recent Files"
" Recent Files"
"Telescope oldfiles"
"<leader>fg"
"fg"
]
[
" File Browser"
" File Browser"
"Telescope file_browser"
"<leader>fe"
"fe"
]
[
" Copilot Chat"
" Copilot Chat"
"CopilotChat"
"Chat with Github Copilot"
"ct"
]
[
"󰧑 SecondBrain"
"edit ~/projects/personal/SecondBrain"
"Note taking with Obsidian"
"sb"
]
];
highlight = "string";

View file

@ -16,6 +16,7 @@
opts = {
number = true;
relativenumber = true;
clipboard = "unnamedplus";
tabstop = 2;
softtabstop = 2;
showtabline = 2;