From 3b02d7ff062f5b2d4c32c3edd849389e0709572a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 17 Mar 2021 22:38:50 +0000 Subject: [PATCH] fugitive: init plugin --- flake.nix | 1 + plugins/default.nix | 1 + plugins/git/fugitive.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 plugins/git/fugitive.nix diff --git a/flake.nix b/flake.nix index f239116f..2b9401c9 100644 --- a/flake.nix +++ b/flake.nix @@ -55,6 +55,7 @@ plugins.undotree.enable = true; plugins.gitgutter.enable = true; + plugins.fugitive.enable = true; plugins.commentary.enable = true; plugins.startify = { enable = true; diff --git a/plugins/default.nix b/plugins/default.nix index bca7bcb7..5a9141ca 100644 --- a/plugins/default.nix +++ b/plugins/default.nix @@ -7,6 +7,7 @@ ./statuslines/airline.nix ./git/gitgutter.nix + ./git/fugitive.nix ./utils/undotree.nix ./utils/commentary.nix diff --git a/plugins/git/fugitive.nix b/plugins/git/fugitive.nix new file mode 100644 index 00000000..957bc5ee --- /dev/null +++ b/plugins/git/fugitive.nix @@ -0,0 +1,12 @@ +{ lib, pkgs, ... }@attrs: +let + helpers = import ../helpers.nix { lib = lib; }; +in with helpers; with lib; +mkPlugin attrs { + name = "fugitive"; + description = "Enable vim-fugitive"; + extraPlugins = [ pkgs.vimPlugins.vim-fugitive ]; + + # In typical tpope fashin, this plugin has no config options + options = {}; +}