1
0
Fork 0

nvim: Add diffview

This commit is contained in:
Daniel Kempkens 2022-06-15 14:38:43 +02:00
parent 33d4785b7a
commit 2cb70224d8
5 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,3 @@
(let [diffview (require :diffview)]
(diffview.setup {:signs {:fold_closed "" :fold_open ""}}))

View file

@ -2,4 +2,6 @@
(neogit.setup {:signs {; [ CLOSED, OPENED ] (neogit.setup {:signs {; [ CLOSED, OPENED ]
:section ["" ""] :section ["" ""]
:item ["" ""] :item ["" ""]
:hunk ["" ""]}})) :hunk ["" ""]}
:integrations {:diffview true}}))

View file

@ -251,6 +251,12 @@ in
type = "fennel"; type = "fennel";
} }
{
plugin = diffview-nvim;
config = builtins.readFile ../../config/nvim/plugins/diffview.fnl;
type = "fennel";
}
{ {
plugin = neogit; plugin = neogit;
config = builtins.readFile ../../config/nvim/plugins/neogit.fnl; config = builtins.readFile ../../config/nvim/plugins/neogit.fnl;

View file

@ -503,6 +503,17 @@
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };
diffview-nvim = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "diffview.nvim";
version = "2022-06-12";
src = pkgs.fetchFromGitHub {
owner = "sindrets";
repo = "diffview.nvim";
rev = "03deb5d379e3b2c2eb4111d7c65d8ee04b77028a";
sha256 = "0fxh55lgc17awjd7msvhlkv7wgj8nksg1ag0m5lgsgp25vhz0y6h";
fetchSubmodules = false;
};
};
neogit = pkgs.vimUtils.buildVimPluginFrom2Nix { neogit = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "neogit"; pname = "neogit";
version = "2022-06-09"; version = "2022-06-09";

View file

@ -82,6 +82,7 @@
- src: lukas-reineke/virt-column.nvim - src: lukas-reineke/virt-column.nvim
- src: akinsho/toggleterm.nvim - src: akinsho/toggleterm.nvim
- src: axieax/urlview.nvim - src: axieax/urlview.nvim
- src: sindrets/diffview.nvim
- src: TimUntersberger/neogit - src: TimUntersberger/neogit
- src: lewis6991/gitsigns.nvim - src: lewis6991/gitsigns.nvim
- src: lewis6991/spellsitter.nvim - src: lewis6991/spellsitter.nvim