Skip to content

Conversation

pale3
Copy link

@pale3 pale3 commented Jul 22, 2019

@zivyangll
This patch add vim popup support with syntax hi. Also there was some other minor changes, take a look

@zivyangll
Copy link
Owner

@pale3 I think we can add a switch to open the panel. Because some people want to show blame-info weakly, others strongly with panel.

@pale3
Copy link
Author

pale3 commented Aug 5, 2019

By switch, you mean to allow user to choose wether popup should be used or echomsg?

Copy link
Owner

@zivyangll zivyangll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By switch, you mean to allow user to choose wether popup should be used or echomsg?

yes, by .vimrc config.

endfunction

function! gitblame#echo()
let l:blank = ' '
let l:file = expand('%')
let l:line = line('.')
let l:gb = gitblame#commit_summary(l:file, l:line)

" if vim has support for popup we will use it, unless stated otherwise
if (g:GBlameUsePopup)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undefined variable: g:GBlameUsePopup.

Please check the case that not "patch-8.1.1522"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand issue here. Will be fixed when i get free time..

@@ -10,6 +10,10 @@ if has('nvim-0.3.2')
let g:GBlameVirtualTextEnable = 0
endif

if has("patch-8.1.1522")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why judge this condition?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhere around this, popup has been implemented

@mralusw
Copy link

mralusw commented Jan 28, 2024

This PR seems to just... work? Anyway vim is (as of now) at 9.1.

@pale3
Copy link
Author

pale3 commented Jan 29, 2024

This PR seems to just... work? Anyway vim is (as of now) at 9.1.

I dont use this anymore, feel free to modify this if needed

@mralusw
Copy link

mralusw commented Jan 29, 2024

Sorry, I meant this for @zivyangll ; I was wondering why this is not merged (i.e. are there any remaining problems?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants