28 lines
724 B
Nix
28 lines
724 B
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
config = {
|
|
programs.nixvim = {
|
|
extraConfigVim = ''
|
|
let g:fugitive_gitlab_domains = [${
|
|
lib.strings.concatStringsSep ", " (
|
|
map (d: "'${d}'") config.frogeye.vim.fugitive.gitlab_domains
|
|
)}]
|
|
'';
|
|
extraPlugins = with pkgs.vimPlugins; [
|
|
fugitive-gitlab-vim # Open files in GitLab
|
|
# TODO Investigate gitlinker instead
|
|
];
|
|
plugins = {
|
|
fugitive.enable = true; # Git basics
|
|
gitsigns.enable = true; # Show changed lines in the gutter
|
|
};
|
|
};
|
|
};
|
|
options.frogeye.vim.fugitive = {
|
|
gitlab_domains = lib.mkOption {
|
|
default = { };
|
|
type = lib.types.listOf lib.types.str;
|
|
};
|
|
};
|
|
}
|