From f7118b8b8f7ea7b9b5058f36176c8dfdad2081d0 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Jan 2023 10:43:54 +0100 Subject: [PATCH] feat: replace gv-vim with vim-flog --- home-manager/neovim/default.nix | 13 +++++++++++-- home-manager/neovim/keymaps.lua | 4 +++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 3eca921..2a8d983 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -33,6 +33,16 @@ let }; 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 { home.packages = with pkgs; [ @@ -95,9 +105,8 @@ in # git gitsigns-nvim vim-fugitive - gv-vim + vim-flog git-blame-nvim - diffview-nvim nvim-web-devicons # used by diffview-nvim # snippets diff --git a/home-manager/neovim/keymaps.lua b/home-manager/neovim/keymaps.lua index 45fb44d..68b1150 100644 --- a/home-manager/neovim/keymaps.lua +++ b/home-manager/neovim/keymaps.lua @@ -17,7 +17,9 @@ nnoremap("", ":TablineBufferPrevious") -- fugitive nnoremap("g", ":0Git") -nnoremap("G", ":GV --all") + +-- vim-flog +nnoremap("G", ":Flog -all -date=relative -open-cmd=new") -- telescope local telescope = require("telescope.builtin")