feat: replace gv-vim with vim-flog

main
mandlm 2023-01-25 10:43:54 +01:00
parent 94c1a20cea
commit f7118b8b8f
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 14 additions and 3 deletions

View File

@ -33,6 +33,16 @@ let
}; };
meta.homepage = "https://github.com/Ttibsi/pre-commit.nvim"; meta.homepage = "https://github.com/Ttibsi/pre-commit.nvim";
}; };
vim-flog = pkgs.vimUtils.buildVimPlugin {
name = "vim-flog";
version = "2023-01-24";
src = pkgs.fetchgit {
url = "https://github.com/rbong/vim-flog";
rev = "baa0206f8d1685d1239d6c10f4b53869eb84c4a0";
sha256 = "y9o1b1HXg6jtYXgKya2wPsIETOWCo8qfN8QuRIq9rUI=";
};
meta.homepage = "https://github.com/rbong/vim-flog/";
};
in in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -95,9 +105,8 @@ in
# git # git
gitsigns-nvim gitsigns-nvim
vim-fugitive vim-fugitive
gv-vim vim-flog
git-blame-nvim git-blame-nvim
diffview-nvim
nvim-web-devicons # used by diffview-nvim nvim-web-devicons # used by diffview-nvim
# snippets # snippets

View File

@ -17,7 +17,9 @@ nnoremap("<C-PageUp>", ":TablineBufferPrevious<CR>")
-- fugitive -- fugitive
nnoremap("<leader>g", ":0Git<CR>") nnoremap("<leader>g", ":0Git<CR>")
nnoremap("<leader>G", ":GV --all<CR>")
-- vim-flog
nnoremap("<leader>G", ":Flog -all -date=relative -open-cmd=new<CR>")
-- telescope -- telescope
local telescope = require("telescope.builtin") local telescope = require("telescope.builtin")