diff options
author | Chris <[email protected]> | 2021-03-15 12:34:37 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-03-15 12:34:37 -0400 |
commit | d9c899652bdc29aa99ea5c2582bdc49d01655a4f (patch) | |
tree | 747f39541627ab49c18976040931adb4ae24b0fd | |
parent | 8f10e3cf3d271e827d65823d79db76da944c29d8 (diff) |
add git blame plugin
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | init.lua | 3 | ||||
-rw-r--r-- | lua/nv-gitblame/init.lua | 2 | ||||
-rw-r--r-- | lua/nv-whichkey/init.vim | 4 | ||||
-rw-r--r-- | lua/plugins.lua | 1 |
5 files changed, 10 insertions, 5 deletions
@@ -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** @@ -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') diff --git a/lua/nv-gitblame/init.lua b/lua/nv-gitblame/init.lua new file mode 100644 index 00000000..12645a7f --- /dev/null +++ b/lua/nv-gitblame/init.lua @@ -0,0 +1,2 @@ +vim.cmd('highlight default link gitblame SpecialComment') +vim.g.gitblame_enabled = 0 diff --git a/lua/nv-whichkey/init.vim b/lua/nv-whichkey/init.vim index 313deada..54919914 100644 --- a/lua/nv-whichkey/init.vim +++ b/lua/nv-whichkey/init.vim @@ -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 diff --git a/lua/plugins.lua b/lua/plugins.lua index d54a59db..3dae1994 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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' |