Fix zt to consider context.vim's context height#1
Fix zt to consider context.vim's context height#1MahdiNazemi wants to merge 3 commits intocskeeters:masterfrom
zt to consider context.vim's context height#1Conversation
|
Thanks for looking into this. context.vim looks like a cool plugin. I haven't tested your fix but I'll assume that it works for this discussion. Since this change would make it so that it would work regardless of if context.vim is being used, my first thought is to incorporate it. On the other hand, if other plugins also tried to do similar things, there would have to be special cases for each one which could result in fragile plugins. Perhaps some thought and inquiry are appropriate. Which context presenter is being used? Does my plugin need to be modified when the preview or popup presenter is used? |
|
Thanks for taking the time to look into this pull request. I agree that finding a solution that works for all plugins would be most beneficial. One possible solution would be to allow users to provide offsets to the Regarding context.vim, it appears to override the |
|
Which context presenter are you using? |

When using context.vim, it is important that the number of lines to scroll takes account of the context height. This pull request aims to solve this issue.
The fix is based on wellle/context.vim#128.
As this is my first contribution to a Vim plugin, please feel free to modify the code to adhere to your preferred style guide.