From 1661e9769e9191e1576b390f18db3ea574dde127 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 18 Aug 2024 03:03:51 +0200 Subject: [PATCH] vim: neogit --- modules/base/vim.nix | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/modules/base/vim.nix b/modules/base/vim.nix index 610f04f..5b77fd8 100644 --- a/modules/base/vim.nix +++ b/modules/base/vim.nix @@ -651,6 +651,22 @@ ''; } + # An interactive and powerful Git interface for Neovim, inspired by + # Magit. + # https://github.com/NeogitOrg/neogit + { + plugin = neogit; + type = "lua"; + config = + /* + lua + */ + '' + require("neogit").setup({}) + vim.keymap.set("n", "gg", vim.cmd.Neogit) + ''; + } + # Single tabpage interface for easily cycling through diffs for all # modified files for any git rev. # https://github.com/sindrets/diffview.nvim @@ -686,13 +702,8 @@ ''; } - # TODO! - vim-fugitive - # mini-nvim - - # TODO: popup file-tree/viewer?? - + # popup file-tree/viewer?? # nvim-colorizer-lua # show colours in colours # vim-matchup # better % # nvim-dap # debug adapter protocol