From cc2819c4a074ce590bd7a303fbaa1ea9b9d14f21 Mon Sep 17 00:00:00 2001 From: Meisterlala <6453306+Meisterlala@users.noreply.github.com> Date: Sat, 25 Jul 2026 17:47:50 +0200 Subject: [PATCH] 2026-07-25-17:47:50 --- lua/plugins/neogit.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lua/plugins/neogit.lua b/lua/plugins/neogit.lua index d3ce269..cb2433f 100644 --- a/lua/plugins/neogit.lua +++ b/lua/plugins/neogit.lua @@ -10,12 +10,14 @@ return { }, config = function() vim.api.nvim_create_autocmd('User', { - pattern = { 'NeogitPushComplete', 'NeogitPullComplete', 'NeogitFetchComplete' }, + pattern = { 'NeogitCommitComplete', 'NeogitPushComplete', 'NeogitPullComplete', 'NeogitFetchComplete' }, callback = function() - local status = require 'neogit.buffers.status' - if status.is_open() then - status.instance():dispatch_refresh(nil, 'neogit_remote_event') - end + vim.defer_fn(function() + local status = require 'neogit.buffers.status' + if status.is_open() then + status.instance():dispatch_refresh(nil, 'neogit_operation_complete') + end + end, 100) end, }) @@ -41,6 +43,13 @@ return { kind = 'split_below', -- Show message with spinning animation when a git command is running. process_spinner = false, + git_services = { + ['forgejo.meisterlala.dev'] = { + pull_request = 'https://${host}/${owner}/${repository}/compare/${branch_name}', + commit = 'https://${host}/${owner}/${repository}/commit/${oid}', + tree = 'https://${host}/${owner}/${repository}/src/branch/${branch_name}', + }, + }, -- Used to generate URL's for branch popup action "pull request". -- Allows a different telescope sorter. Defaults to 'fuzzy_with_index_bias'. The example below will use the native fzf -- sorter instead. By default, this function returns `nil`. -- 2.51.2