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 = [
|
lualine_a = [
|
||||||
{
|
{
|
||||||
name = "mode";
|
name = "mode";
|
||||||
|
icon = " ";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
lualine_b = [
|
lualine_b = [
|
||||||
|
|
@ -21,6 +22,16 @@ _: {
|
||||||
name = "branch";
|
name = "branch";
|
||||||
icon = "";
|
icon = "";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "diff";
|
||||||
|
extraConfig = {
|
||||||
|
symbols = {
|
||||||
|
added = " ";
|
||||||
|
modified = " ";
|
||||||
|
removed = " ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
lualine_c = [
|
lualine_c = [
|
||||||
{
|
{
|
||||||
|
|
@ -58,28 +69,18 @@ _: {
|
||||||
name = "navic";
|
name = "navic";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "diff";
|
name.__raw = ''
|
||||||
extraConfig = {
|
function()
|
||||||
symbols = {
|
local icon = " "
|
||||||
added = " ";
|
local status = require("copilot.api").status.data
|
||||||
modified = " ";
|
return icon .. (status.message or " ")
|
||||||
removed = " ";
|
end,
|
||||||
};
|
|
||||||
source = {
|
cond = function()
|
||||||
__raw = ''
|
local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 })
|
||||||
function()
|
return ok and #clients > 0
|
||||||
local gitsings = vim.b.gitsigns_status_dict
|
end,
|
||||||
if gitsigns then
|
'';
|
||||||
return {
|
|
||||||
added = gitigns.added,
|
|
||||||
modified = gitigns.changed,
|
|
||||||
removed = gitigns.removed
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
lualine_y = [
|
lualine_y = [
|
||||||
|
|
|
||||||
|
|
@ -39,32 +39,32 @@
|
||||||
[
|
[
|
||||||
" Find File"
|
" Find File"
|
||||||
"Telescope find_files"
|
"Telescope find_files"
|
||||||
"<leader>ff"
|
"ff"
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
" Find Word"
|
" Find Word"
|
||||||
"Telescope live_grep"
|
"Telescope live_grep"
|
||||||
"<leader>fr"
|
"fr"
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
" Recent Files"
|
" Recent Files"
|
||||||
"Telescope oldfiles"
|
"Telescope oldfiles"
|
||||||
"<leader>fg"
|
"fg"
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
" File Browser"
|
" File Browser"
|
||||||
"Telescope file_browser"
|
"Telescope file_browser"
|
||||||
"<leader>fe"
|
"fe"
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
" Copilot Chat"
|
" Copilot Chat"
|
||||||
"CopilotChat"
|
"CopilotChat"
|
||||||
"Chat with Github Copilot"
|
"ct"
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
" SecondBrain"
|
" SecondBrain"
|
||||||
"edit ~/projects/personal/SecondBrain"
|
"edit ~/projects/personal/SecondBrain"
|
||||||
"Note taking with Obsidian"
|
"sb"
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
highlight = "string";
|
highlight = "string";
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
opts = {
|
opts = {
|
||||||
number = true;
|
number = true;
|
||||||
relativenumber = true;
|
relativenumber = true;
|
||||||
|
clipboard = "unnamedplus";
|
||||||
tabstop = 2;
|
tabstop = 2;
|
||||||
softtabstop = 2;
|
softtabstop = 2;
|
||||||
showtabline = 2;
|
showtabline = 2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue