-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Help request) How to add custom integrations? (agitator) #297
Comments
Hey, thanks for using the plugin, hope you like it!
You should be able to have a pretty easy setup by adding an entry here https://github.com/shortcuts/no-neck-pain.nvim/blob/main/lua/no-neck-pain/util/constants.lua#L36 If you want to add tests, they can be added here https://github.com/shortcuts/no-neck-pain.nvim/blob/main/tests/test_integrations.lua |
Hey, I gave it a shot with the following:
It kind of works, but for some reason it's super buggy: sometimes the sidebar doesn't open, sometimes instead of closing it when I toggle it it opens another, etc... I'm guessing the problems are in both projects so probably not gonna investigate further. But thanks for the help! |
So I was unsatisfied with the way agitator was behaving with NNP, and I read through your code and figured out that it's because fundamentally all of your integrations are expected to stay pinned to the far edge, whereas a git blame is supposed to be next to the file it's about. For that reason, when I was opening a git blame window, the NNP left buffer would close (due to not enough space), and since the git blame window was to the right of the left NNP padding window, it would expand to the left, being way wider than it needs to be (and therefore also shrinking the main window). There's no easy way to fix this without breaking either agitator (forcing it to always be at the far left/right) or adding custom logic to NNP for agitator. Here's a workaround I threw in my
This works pretty well for my workflow because I usually only have one window open at a time, but probably won't be ideal if you often like using vsplits |
I use agitator to view git blame. It opens a sidebar when you toggle it, much like nvim-tree and such. I would like to set up a custom integration for it and hopefully contribute it, but I was wondering if you have any instructions/explanation/documentation already for how to do that.
The text was updated successfully, but these errors were encountered: