add gitsigns, add nvim-web-devicons, update lualine and neo-tree

This commit is contained in:
Roel de Cort 2024-05-10 22:48:28 +02:00
parent f761ba7614
commit a00c0a0bd0
5 changed files with 70 additions and 34 deletions

View file

@ -36,9 +36,11 @@ _: {
# Git
./plugins/git/lazygit.nix
./plugins/git/gitsigns.nix
# Utils
./plugins/utils/telescope.nix
./plugins/utils/whichkey.nix
./plugins/utils/extra_plugins.nix
];
}

View file

@ -6,6 +6,9 @@
filesystem = {
bindToCwd = false;
followCurrentFile = {
enabled = true;
};
};
defaultComponentConfigs = {

View file

@ -0,0 +1,27 @@
_: {
plugins.gitsigns = {
enable = true;
settings = {
signs = {
add = {
text = "";
};
change = {
text = "";
};
delete = {
text = "";
};
topdelete = {
text = "";
};
changedelete = {
text = "";
};
untracked = {
text = "";
};
};
};
};
}

View file

@ -3,34 +3,24 @@ _: {
enable = true;
globalstatus = true;
disabledFiletypes = {
statusline = ["dashboard" "alpha"];
statusline = ["startup" "alpha"];
};
theme = "catppuccin";
sections = {
lualine_a = [
{
name = "mode";
fmt = "string.lower";
color = {
fg = "none";
bg = "none";
};
}
];
lualine_b = [
{
name = "branch";
icon = "";
color = {
fg = "none";
bg = "none";
};
}
"diff"
];
lualine_c = [
{
name = "diagnostic";
name = "diagnostics";
extraConfig = {
symbols = {
error = " ";
@ -39,44 +29,53 @@ _: {
hint = "󰝶 ";
};
};
color = {
fg = "none";
bg = "none";
}
{
name = "filetype";
extraConfig = {
icon_only = true;
separator = "";
padding = {
left = 1;
right = 0;
};
};
}
];
lualine_x = [
{
name = "filetype";
name = "diff";
extraConfig = {
icon_only = true;
symbos = {
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
'';
};
};
}
];
lualine_y = [
{
name = "filename";
extraConfig = {
symbols = {
modified = "";
readonly = "";
unnamed = "";
};
};
color = {
fg = "none";
bg = "none";
};
separator.left = "";
name = "progress";
}
];
lualine_z = [
{
name = "location";
color = {
fg = "none";
bg = "none";
};
}
];
};

View file

@ -0,0 +1,5 @@
{pkgs, ...}: {
extraPlugins = with pkgs.vimPlugins; [
nvim-web-devicons
];
}