Eliot00 / git-lens.vim

A vim9 plugin inspired by VSCode's GitLens.
GNU Affero General Public License v3.0
60 stars 1 forks source link

Add options to customize symbols like `•` #10

Closed satorunooshie closed 5 months ago

satorunooshie commented 5 months ago

What do you think to add options to customize symbols like as termdebug_signs does?

Change default signs 
                            termdebug_signs
Termdebug uses the hex number of the breakpoint ID in the signcolumn to
represent breakpoints. if [it](https://vimhelp.org/motion.txt.html#it) [is](https://vimhelp.org/motion.txt.html#is) greater than "0xFF"[,](https://vimhelp.org/motion.txt.html#%2C) then [it](https://vimhelp.org/motion.txt.html#it) will be displayed
[as](https://vimhelp.org/motion.txt.html#as) "F+"[,](https://vimhelp.org/motion.txt.html#%2C) due to we really only have two screen cells for the sign.

If you want to customize the breakpoint signs: 
    let g:termdebug_config['sign'] = '>>'
If there [is](https://vimhelp.org/motion.txt.html#is) no g:terminal_config yet you can use: 
    let g:termdebug_config = {'sign': '>>'}

After this, breakpoints will be displayed [as](https://vimhelp.org/motion.txt.html#as) >> in the signcolumn.
Eliot00 commented 5 months ago

If I understand correctly, this option already exists

g:GIT_LENS_CONFIG = {
    blame_prefix: '••••',
}
satorunooshie commented 5 months ago

Thanks for reply.

g:GIT_LENS_CONFIG = {
  blame_prefix: '    ---- ',
}

I'm pointing symbols at https://github.com/Eliot00/git-lens.vim/blob/508e85748e4fa2028a5eaf144adbe3659002b592/autoload/git_lens/blame.vim#L226 not prefix.

image
Eliot00 commented 5 months ago

I see, but adding a separate configuration for the separator seems not flexible enough...

I quickly did a minimal verification and added a 'blame_template' configuration item. The effect is as shown below

image