diff --git a/vim/config/pluginconfig.vim b/vim/config/pluginconfig.vim index 0d14d71..2ac458c 100644 --- a/vim/config/pluginconfig.vim +++ b/vim/config/pluginconfig.vim @@ -217,6 +217,52 @@ autocmd VimEnter * NERDTree | wincmd p autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | \ let buf=bufnr() | buffer# | execute "normal! \w" | execute 'buffer'.buf | endif +" Blame +lua << EOF +require("blame_line").setup { + -- whether the blame line should be shown in visual modes + show_in_visual = true, + + -- whether the blame line should be shown in insert mode + show_in_insert = true, + + -- the string to prefix the blame line with + prefix = " ", + + -- String specifying the the blame line format. + -- Any combination of the following specifiers, along with any additional text. + -- - `""` - the author of the change. + -- - `""` - the email of the author. + -- - `""` - the time the author made the change. + -- - `""` - the person who committed the change to the repository. + -- - `""` - the email of the committer. + -- - `""` - the time the change was committed to the repository. + -- - `""` - the commit summary/message. + -- - `""` - short portion of the commit hash. + -- - `""` - the full commit hash. + template = "", + + -- The date format settings, for `""` and `""` + date = { + -- whether the date should be relative instead of precise + -- (I.E. "3 days ago" instead of "09-06-2022". + relative = true, + + -- `strftime` compatible format string. + -- Only used if `date.relative == false` + format = "%d-%m-%y", + }, + + -- The highlight group to highlight the blame line with. + -- The highlight of this group defaults to `Comment`. + hl_group = "BlameLineNvim", + + -- The delay in milliseconds between a cursor movement and + -- when the blame line should appear/update + delay = 0, +} +EOF + " Vim-markdown let g:vim_markdown_conceal = 0 diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 135c31d..a23fe38 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -103,4 +103,6 @@ Plug 'github/copilot.vim' Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.2.1' } +Plug 'braxtons12/blame_line.nvim' + call plug#end()