VIM: Blame config

This commit is contained in:
Tobias Manske 2022-06-23 12:13:00 +02:00
parent 10494c3ffe
commit 68fca270ca
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A
2 changed files with 48 additions and 0 deletions

View File

@ -217,6 +217,52 @@ autocmd VimEnter * NERDTree | wincmd p
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif \ let buf=bufnr() | buffer# | execute "normal! \<C-W>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.
-- - `"<author>"` - the author of the change.
-- - `"<author-mail>"` - the email of the author.
-- - `"<author-time>"` - the time the author made the change.
-- - `"<committer>"` - the person who committed the change to the repository.
-- - `"<committer-mail>"` - the email of the committer.
-- - `"<committer-time>"` - the time the change was committed to the repository.
-- - `"<summary>"` - the commit summary/message.
-- - `"<commit-short>"` - short portion of the commit hash.
-- - `"<commit-long>"` - the full commit hash.
template = "<author> • <author-time> • <summary>",
-- The date format settings, for `"<author-time>"` and `"<committer-time>"`
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 " Vim-markdown
let g:vim_markdown_conceal = 0 let g:vim_markdown_conceal = 0

View File

@ -103,4 +103,6 @@ Plug 'github/copilot.vim'
Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.2.1' } Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.2.1' }
Plug 'braxtons12/blame_line.nvim'
call plug#end() call plug#end()