Compare commits
3 commits
ca2dc262b7
...
9c6a2f69f0
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 9c6a2f69f0 | ||
Geoffrey Frogeye | 85cd61d206 | ||
Geoffrey Frogeye | ffd871299b |
22
flake.lock
22
flake.lock
|
@ -398,11 +398,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705183652,
|
"lastModified": 1706098335,
|
||||||
"narHash": "sha256-rnfkyUH0x72oHfiSDhuCHDHg3gFgF+lF8zkkg5Zihsw=",
|
"narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "428544ae95eec077c7f823b422afae5f174dee4b",
|
"rev": "a77ab169a83a4175169d78684ddd2e54486ac651",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -452,16 +452,18 @@
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dirtyRev": "c96d7b46d05a78e695ed1c725d1596b65509b4f9-dirty",
|
"lastModified": 1705700164,
|
||||||
"dirtyShortRev": "c96d7b46-dirty",
|
|
||||||
"lastModified": 1702044539,
|
|
||||||
"narHash": "sha256-YAWtzc+5KDOHDGz/NBB7ysIusXbYYKtsbDOsRhSWKYk=",
|
"narHash": "sha256-YAWtzc+5KDOHDGz/NBB7ysIusXbYYKtsbDOsRhSWKYk=",
|
||||||
"type": "git",
|
"owner": "GeoffreyFrogeye",
|
||||||
"url": "file:/home/geoffrey/nixvim"
|
"repo": "nixvim",
|
||||||
|
"rev": "2e5f7781fccba0472277cad5d383d10d50772234",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"owner": "GeoffreyFrogeye",
|
||||||
"url": "file:/home/geoffrey/nixvim"
|
"ref": "frogeye-23.11",
|
||||||
|
"repo": "nixvim",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nmd": {
|
"nmd": {
|
||||||
|
|
|
@ -58,6 +58,11 @@
|
||||||
newestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | tail'';
|
newestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | tail'';
|
||||||
oldestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | head'';
|
oldestFile = ''${pkgs.findutils}/bin/find -type f -printf '%T+ %p\n' | sort | head'';
|
||||||
};
|
};
|
||||||
|
thefuck = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
lsd = {
|
lsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -2,26 +2,30 @@
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
extraConfigVim = ''
|
keymaps = [
|
||||||
let g:fugitive_gitlab_domains = [${
|
{
|
||||||
lib.strings.concatStringsSep ", " (
|
mode = [ "n" ];
|
||||||
map (d: "'${d}'") config.frogeye.vim.fugitive.gitlab_domains
|
key = "gG";
|
||||||
)}]
|
action = ''<cmd>lua require"gitlinker".get_buf_range_url("n")<cr>'';
|
||||||
'';
|
}
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
{
|
||||||
fugitive-gitlab-vim # Open files in GitLab
|
mode = [ "v" ];
|
||||||
# TODO Investigate gitlinker instead
|
key = "gG";
|
||||||
|
action = ''<cmd>lua require"gitlinker".get_buf_range_url("v")<cr>'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
plugins = {
|
plugins = {
|
||||||
fugitive.enable = true; # Git basics
|
fugitive.enable = true; # Git basics
|
||||||
gitsigns.enable = true; # Show changed lines in the gutter
|
gitsigns.enable = true; # Show changed lines in the gutter
|
||||||
|
gitlinker = {
|
||||||
|
enable = true; # Copy URL of forge corresponding to cursor
|
||||||
|
callbacks = {
|
||||||
|
"code.techinc.nl" = "get_gitea_type_url";
|
||||||
|
"git.frogeye.fr" = "get_gitea_type_url";
|
||||||
|
};
|
||||||
|
mappings = null; # This option doesn't work, hence manual mappings
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
options.frogeye.vim.fugitive = {
|
|
||||||
gitlab_domains = lib.mkOption {
|
|
||||||
default = { };
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue