mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-24 12:44:35 +02:00
add git blame plugin
This commit is contained in:
parent
8f10e3cf3d
commit
d9c899652b
5 changed files with 10 additions and 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**
|
||||
|
|
3
init.lua
3
init.lua
|
@ -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
2
lua/nv-gitblame/init.lua
Normal file
|
@ -0,0 +1,2 @@
|
|||
vim.cmd('highlight default link gitblame SpecialComment')
|
||||
vim.g.gitblame_enabled = 0
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue