From e6981a8008856292f6eaae74322699220599f9b7 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Mon, 16 Oct 2023 22:10:26 +0200 Subject: new shiny git plugin --- lua/plugins/general.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lua/plugins/general.lua') diff --git a/lua/plugins/general.lua b/lua/plugins/general.lua index 436d534..0e3e7fc 100644 --- a/lua/plugins/general.lua +++ b/lua/plugins/general.lua @@ -8,19 +8,22 @@ return { require('lint').linters_by_ft = { tex = { 'lacheck', } } - vim.api.nvim_create_autocmd({ "BufWritePost" }, { + vim.api.nvim_create_autocmd({ 'BufWritePost' }, { callback = function() - require("lint").try_lint() + require('lint').try_lint() end, }) end, }, { - 'tpope/vim-fugitive', - event = { - 'BufReadPost', - 'BufNewFile' + 'NeogitOrg/neogit', + keys = { + { 'a', function() require('neogit').open() end, desc = 'git' }, + }, + dependencies = { + 'nvim-lua/plenary.nvim', }, + config = true }, { 'ludovicchabant/vim-gutentags', -- cgit v1.2.3