nvim: Add diffview
This commit is contained in:
parent
33d4785b7a
commit
2cb70224d8
5 changed files with 24 additions and 1 deletions
3
config/nvim/plugins/diffview.fnl
Normal file
3
config/nvim/plugins/diffview.fnl
Normal file
|
@ -0,0 +1,3 @@
|
|||
(let [diffview (require :diffview)]
|
||||
(diffview.setup {:signs {:fold_closed "" :fold_open ""}}))
|
||||
|
|
@ -2,4 +2,6 @@
|
|||
(neogit.setup {:signs {; [ CLOSED, OPENED ]
|
||||
:section ["" ""]
|
||||
:item ["" ""]
|
||||
:hunk ["" ""]}}))
|
||||
:hunk ["" ""]}
|
||||
:integrations {:diffview true}}))
|
||||
|
||||
|
|
|
@ -251,6 +251,12 @@ in
|
|||
type = "fennel";
|
||||
}
|
||||
|
||||
{
|
||||
plugin = diffview-nvim;
|
||||
config = builtins.readFile ../../config/nvim/plugins/diffview.fnl;
|
||||
type = "fennel";
|
||||
}
|
||||
|
||||
{
|
||||
plugin = neogit;
|
||||
config = builtins.readFile ../../config/nvim/plugins/neogit.fnl;
|
||||
|
|
|
@ -503,6 +503,17 @@
|
|||
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 {
|
||||
pname = "neogit";
|
||||
version = "2022-06-09";
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
- src: lukas-reineke/virt-column.nvim
|
||||
- src: akinsho/toggleterm.nvim
|
||||
- src: axieax/urlview.nvim
|
||||
- src: sindrets/diffview.nvim
|
||||
- src: TimUntersberger/neogit
|
||||
- src: lewis6991/gitsigns.nvim
|
||||
- src: lewis6991/spellsitter.nvim
|
||||
|
|
Loading…
Reference in a new issue