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 # Git
./plugins/git/lazygit.nix ./plugins/git/lazygit.nix
./plugins/git/gitsigns.nix
# Utils # Utils
./plugins/utils/telescope.nix ./plugins/utils/telescope.nix
./plugins/utils/whichkey.nix ./plugins/utils/whichkey.nix
./plugins/utils/extra_plugins.nix
]; ];
} }

View file

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

View file

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