add gitblame
This commit is contained in:
parent
75bdbb62c4
commit
6c167845e7
8
lua/config/gitblame.lua
Normal file
8
lua/config/gitblame.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
local map = require 'utils.map'
|
||||||
|
local silent = {silent = true}
|
||||||
|
|
||||||
|
map('n', '<leader>gm', ":GitBlameCopySHA<CR>", silent)
|
||||||
|
map('n', '<leader>gj', ":GitBlameOpenCommitURL<CR>", silent)
|
||||||
|
map('n', '<leader>gu', ":GitBlameToggle<CR>", silent)
|
||||||
|
|
||||||
|
vim.g["gitblame_enabled"] = 0
|
@ -16,6 +16,12 @@ local function usePlugins(use, use_rocks)
|
|||||||
-- Seemless pane switching betwen tmux and vim
|
-- Seemless pane switching betwen tmux and vim
|
||||||
use 'christoomey/vim-tmux-navigator'
|
use 'christoomey/vim-tmux-navigator'
|
||||||
|
|
||||||
|
-- Git blame
|
||||||
|
use {
|
||||||
|
'f-person/git-blame.nvim',
|
||||||
|
config = [[require 'config.gitblame']]
|
||||||
|
}
|
||||||
|
|
||||||
-- Ansible file syntax highlighting
|
-- Ansible file syntax highlighting
|
||||||
use 'pearofducks/ansible-vim'
|
use 'pearofducks/ansible-vim'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user