From d580ce71e9b7329437fb5ba359314115efc9deeb Mon Sep 17 00:00:00 2001 From: Ilia Levikov Date: Thu, 31 Jul 2025 12:57:35 +1200 Subject: [PATCH] add gbrowse --- lua/newbim/plugins/git.lua | 15 +++++++++++---- lua/newbim/plugins/markdown.lua | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lua/newbim/plugins/git.lua b/lua/newbim/plugins/git.lua index d94fb35b..e4b36028 100644 --- a/lua/newbim/plugins/git.lua +++ b/lua/newbim/plugins/git.lua @@ -1,6 +1,13 @@ return { - 'tpope/vim-fugitive', - config = function() - vim.keymap.set('n', 'gs', vim.cmd.Git) - end, + { + 'tpope/vim-fugitive', + config = function() + vim.keymap.set('n', 'gs', vim.cmd.Git) + vim.keymap.set('n', 'gg', ':GBrowse', { desc = 'GitHub Browse (Gbrowse)' }) + end, + }, + { + 'tpope/vim-rhubarb', -- Enables :Gbrowse for GitHub remotes + event = 'VeryLazy', + }, } diff --git a/lua/newbim/plugins/markdown.lua b/lua/newbim/plugins/markdown.lua index 1f60571f..6e8a027d 100644 --- a/lua/newbim/plugins/markdown.lua +++ b/lua/newbim/plugins/markdown.lua @@ -1,6 +1,6 @@ return { 'MeanderingProgrammer/render-markdown.nvim', - dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovsky/mini.nvim' }, + dependencies = { 'nvim-treesitter/nvim-treesitter' }, ---@module 'render-markdown' ---@type render.md.UserConfig opts = {},