add gitsigns, add nvim-web-devicons, update lualine and neo-tree
This commit is contained in:
parent
f761ba7614
commit
a00c0a0bd0
5 changed files with 70 additions and 34 deletions
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
filesystem = {
|
||||
bindToCwd = false;
|
||||
followCurrentFile = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
defaultComponentConfigs = {
|
||||
|
|
|
|||
27
config/plugins/git/gitsigns.nix
Normal file
27
config/plugins/git/gitsigns.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
_: {
|
||||
plugins.gitsigns = {
|
||||
enable = true;
|
||||
settings = {
|
||||
signs = {
|
||||
add = {
|
||||
text = "▎";
|
||||
};
|
||||
change = {
|
||||
text = "▎";
|
||||
};
|
||||
delete = {
|
||||
text = "";
|
||||
};
|
||||
topdelete = {
|
||||
text = "";
|
||||
};
|
||||
changedelete = {
|
||||
text = "▎";
|
||||
};
|
||||
untracked = {
|
||||
text = "▎";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
5
config/plugins/utils/extra_plugins.nix
Normal file
5
config/plugins/utils/extra_plugins.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
nvim-web-devicons
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue