add git blame plugin

This commit is contained in:
Chris 2021-03-15 12:34:37 -04:00
parent 8f10e3cf3d
commit d9c899652b
5 changed files with 10 additions and 5 deletions

View file

@ -25,12 +25,11 @@ sudo rm -r neovim
## TODO
**HIGH PRIORITY**
- add vscode support
- snippet support
- configure git blame
- add lots of lsp
- react commenting
- better autoimport
- add lots of lsp
- add vscode support
- toggle virtual text diagnostics
**LOW PRIORITY**

View file

@ -23,6 +23,7 @@ require('nv-lspkind')
require('nv-hop')
require('nv-compe')
require('nv-closetag')
require('nv-gitblame')
-- Which Key (Hope to replace with Lua plugin someday)
vim.cmd('source ~/.config/nvim/lua/nv-whichkey/init.vim')
@ -33,4 +34,4 @@ require('utils')
require('lsp.lua-ls')
require('lsp.bash-ls')
require('lsp.js-ts-ls')
vim.cmd('highlight default link gitblame SpecialComment')

2
lua/nv-gitblame/init.lua Normal file
View file

@ -0,0 +1,2 @@
vim.cmd('highlight default link gitblame SpecialComment')
vim.g.gitblame_enabled = 0

View file

@ -31,9 +31,11 @@ let g:which_key_map['e'] = [ ':NvimTreeToggle' ,
let g:which_key_map['h'] = [ '<C-W>s' , 'split below']
let g:which_key_map['n'] = [ ':let @/ = ""' , 'no highlight' ]
let g:which_key_map['r'] = [ ':RnvimrToggle' , 'ranger' ]
" TODO create entire treesitter section
let g:which_key_map['T'] = [ ':TSHighlightCapturesUnderCursor' , 'treesitter highlight' ]
let g:which_key_map['v'] = [ '<C-W>v' , 'split right']
let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
" Add Zen mode, play nice with status line
" let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
" Group mappings

View file

@ -69,6 +69,7 @@ return require('packer').startup(function()
-- Git
use 'TimUntersberger/neogit'
use {'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } }
use 'f-person/git-blame.nvim'
-- Easily Create Gists
use 'mattn/vim-gist'