From b264ee47ef6d5069ecf3575e1b7b93e126900366 Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Fri, 24 May 2024 14:24:24 +0200 Subject: [PATCH] plugin/neogit: Define keymaps with lazy only --- lua/valeth/plugins/neogit.lua | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/lua/valeth/plugins/neogit.lua b/lua/valeth/plugins/neogit.lua index 047fea9..8822d52 100644 --- a/lua/valeth/plugins/neogit.lua +++ b/lua/valeth/plugins/neogit.lua @@ -7,25 +7,10 @@ spec.dependencies = { } spec.keys = { - "vs", - "vc", + { "vs", "Neogit" }, + { "vc", "Neogit commit" }, } -spec.config = function() - local neogit = require("neogit") - - local function git_status() - neogit.open() - end - - local function git_commit() - neogit.open({ "commit" }) - end - - vim.keymap.set("n", "vs", git_status) - vim.keymap.set("n", "vc", git_commit) - - neogit.setup({}) -end +spec.config = true return spec