Configured Navic and integrated it with Lualine. This provides context about the code that is being worked on. Also added a PAT to be able to create a PR when the Flake Update Github action runs.
97 lines
1.9 KiB
Nix
97 lines
1.9 KiB
Nix
_: {
|
|
plugins.lualine = {
|
|
enable = true;
|
|
globalstatus = true;
|
|
extensions = [
|
|
"fzf"
|
|
"neo-tree"
|
|
];
|
|
disabledFiletypes = {
|
|
statusline = ["startup" "alpha"];
|
|
};
|
|
theme = "catppuccin";
|
|
sections = {
|
|
lualine_a = [
|
|
{
|
|
name = "mode";
|
|
}
|
|
];
|
|
lualine_b = [
|
|
{
|
|
name = "branch";
|
|
icon = "";
|
|
}
|
|
];
|
|
lualine_c = [
|
|
{
|
|
name = "diagnostics";
|
|
extraConfig = {
|
|
sources = ["nvim_lsp"];
|
|
symbols = {
|
|
error = " ";
|
|
warn = " ";
|
|
info = " ";
|
|
hint = " ";
|
|
};
|
|
};
|
|
}
|
|
{
|
|
name = "filetype";
|
|
extraConfig = {
|
|
icon_only = true;
|
|
separator = "";
|
|
padding = {
|
|
left = 1;
|
|
right = 0;
|
|
};
|
|
};
|
|
}
|
|
{
|
|
name = "filename";
|
|
extraConfig = {
|
|
path = 1;
|
|
};
|
|
}
|
|
];
|
|
lualine_x = [
|
|
{
|
|
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
|
|
'';
|
|
};
|
|
};
|
|
}
|
|
];
|
|
lualine_y = [
|
|
{
|
|
name = "progress";
|
|
}
|
|
];
|
|
lualine_z = [
|
|
{
|
|
name = "location";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|