From 38620e4af730c4a9e2a5c978384095c16798b8c8 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sat, 16 Mar 2024 13:10:55 +0100 Subject: [PATCH] feat(nvim): add Neogit plugin --- nvim/lazy-lock.json | 1 + nvim/lua/plugins/neogit.lua | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 nvim/lua/plugins/neogit.lua diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 340006c..dc7ce85 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -66,6 +66,7 @@ "neo-tree.nvim": { "branch": "v3.x", "commit": "742db4e60c74e5fbcc596aaf9e7575e1342dfd09" }, "neoconf.nvim": { "branch": "main", "commit": "ffdeab72dc167543f9b3355baceb0918f1e81fc0" }, "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" }, + "neogit": { "branch": "master", "commit": "bc6aca9242bdcf61ea8aa4355e24f7bffb2aa8f3" }, "neotest": { "branch": "master", "commit": "4440cc2227894c2ae9b0673a30e6cc6f1836e8c2" }, "neotest-jest": { "branch": "main", "commit": "959d45b133de938c79e3f064db188680eaf69055" }, "neotest-rspec": { "branch": "main", "commit": "0d73fe6de6baf951f6b95f55a4770429b9d58953" }, diff --git a/nvim/lua/plugins/neogit.lua b/nvim/lua/plugins/neogit.lua new file mode 100644 index 0000000..bdd51f4 --- /dev/null +++ b/nvim/lua/plugins/neogit.lua @@ -0,0 +1,20 @@ +-- An interactive and powerful Git interface for Neovim +-- https://github.com/NeogitOrg/neogit +return { + "NeogitOrg/neogit", + dependencies = { + "nvim-lua/plenary.nvim", + "sindrets/diffview.nvim", + "nvim-telescope/telescope.nvim", + }, + keys = { + { + "gn", + function() + require("neogit").open() + end, + desc = "Neogit", + }, + }, + config = true, +}