blob: 7f85acc928255d714ff92c94c924279fa9c9617a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Git integration: signs, blame, diffs and hunk operations
{
config,
lib,
pkgs,
...
}:
let
cfg = config.development.nixvim;
base16Colors = import ../../../../colors/base16 { inherit config lib pkgs; };
in
{
config.programs.nixvim = lib.mkIf cfg.enable {
plugins.gitsigns = {
enable = true;
settings = {
signs = {
add.text = "┃";
change.text = "┃";
delete.text = "▁";
topdelete.text = "▔";
changedelete.text = "~";
untracked.text = "┆";
};
signcolumn = false;
numhl = true;
current_line_blame = false;
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>";
on_attach = builtins.readFile ./on-attach.lua;
};
};
highlight = with base16Colors.colorsWithHashPrefix; {
GitSignsAdd.fg = base0B;
GitSignsChange.fg = base0A;
GitSignsDelete.fg = base08;
GitSignsTopdelete.fg = base08;
GitSignsChangedelete.fg = base0A;
GitSignsUntracked.fg = base0C;
GitSignsCurrentLineBlame.fg = base04;
};
};
}
|