nvim: plugins: Enable GBrowse support
GBrowse also seems to at least need the autoloaded functions from netrw, so we only disable netrw commands and mappings. See https://github.com/tpope/vim-fugitive/issues/1010.
This commit is contained in:
parent
bd39e7f163
commit
a7b12dc642
3 changed files with 15 additions and 2 deletions
|
@ -28,6 +28,9 @@ nnoremap <Leader>g+ :Git stash pop<SPACE>
|
|||
nnoremap <Leader>gs :Git stash list<CR>
|
||||
nnoremap <Leader>gS :Git stash -- %<CR>
|
||||
nnoremap <Leader>gt :Git reflog<CR>
|
||||
xnoremap <Leader>gu :GBrowse!<CR>
|
||||
xnoremap <Leader>gU :GBrowse<CR>
|
||||
nnoremap <Leader>gu :GBrowse<CR>
|
||||
nnoremap <Leader>gw :Gwrite<CR>
|
||||
nnoremap <Leader>G :Git<SPACE>
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ vim.g.loaded_perl_provider = 0
|
|||
vim.g.loaded_node_provider = 0
|
||||
|
||||
-- Disable some in built plugins completely
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.g.loaded_matchparen = 1
|
||||
vim.g.loaded_matchit = 1
|
||||
|
@ -91,6 +90,8 @@ vim.g['sneak#use_ic_scs'] = 0
|
|||
vim.g.dirvish_relative_paths = 1
|
||||
-- dispatch
|
||||
vim.g.dispatch_no_maps = 1
|
||||
-- vim-fugitive GBrowse GitLab
|
||||
vim.g.fugitive_gitlab_domains = {'https://gitlab.freedesktop.org', 'https://gitlab.gnome.org/GNOME', 'https://gitlab.com'}
|
||||
|
||||
-- We do this to prevent the loading of the system fzf.vim plugin. This is
|
||||
-- present at least on Arch/Manjaro
|
||||
|
|
|
@ -32,7 +32,16 @@ local init = function ()
|
|||
}
|
||||
-- Git support
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
use 'tpope/vim-fugitive'
|
||||
use {
|
||||
'tpope/vim-fugitive',
|
||||
requires = {
|
||||
-- GBrowse support
|
||||
'tpope/vim-rhubarb',
|
||||
'shumphrey/fugitive-gitlab.vim',
|
||||
'https://git.sr.ht/~willdurand/srht.vim',
|
||||
'mattn/webapi-vim'
|
||||
}
|
||||
}
|
||||
use 'rhysd/git-messenger.vim'
|
||||
use 'whiteinge/diffconflicts'
|
||||
-- Boost vim command line mode
|
||||
|
|
Loading…
Reference in a new issue