Detect window placement relative to monitor #412
Replies: 1 comment 1 reply
-
Hey, thanks for using the plugin :) I don't think this is possible, or at least not programatically to fit everyone's use cases, however it might be doable by combining nvim api and no-neck-pain api: With nvim api, register a custom autocmd for I'm not sure how doable it is but that's the "naive" approach I'd go for! |
Beta Was this translation helpful? Give feedback.
-
Loving this plug-in, thank you so much for your work on it. I generally have my terminal centered on the screen, but occasionally I will add another window to the screen which means it has to be on the right or left (although maybe still taking up 2/3 of the space). I was wondering if there is a way to attempt to center the buffer window closest to the center of the actual monitor. Like if the terminal is more to the left then no-neck-pain only adds padding to the left side and vice-versa.
Beta Was this translation helpful? Give feedback.
All reactions