Closed avih7531 closed 5 months ago
Sorry for the code block. It was the only way I could get Github to recognize my weird formatting.
This is an interesting idea. I think to implement this would probably need NeoVim extmarks. It's not easy though, as they'll move around as the text is edited.
I'll leave this open here in case anyone wants to take this on, but right I'm not sure it's something I can spend any time on, it's probably non-trivial. I think this would ultimately be better as a built-in NeoVim feature.
Thanks for your interest, Andrew!
I definitely agree that it won't be trivial to implement, but I forked this repo and I'll give it my best shot with a buddy over the next week or so, but by all means if someone wants to save me :wink:
I'd like to propose one more wrapping type where instead of an empty line-number on the line that is wrapped, a symbol is added:
Wrapped Indicated 3rd Way
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text
is so, so cool")
3 }
Wrapped Indicated 4th Way
1 public static void main(String[] args) {
2 System.out.println("Wow. Wrapping text
is so, so cool")
3 }
The symbol would be much easier to achieve using the new 'status column' feature in NeoVim 0.10; worth looking into...
Thanks for your advice. I’ll try that as a first step. Thanks!
Hi! Now that Nvim 0.10 is out and has the status column feature, could this feature be implemented in the next update?
There's no easy way to do this in the general sense; the vim.opt.statuscolumn
option is typically used for a number of things, such as customizing line numbers, diagnostic marks, etc. Everyone uses it differently (or will), so an implementation in wrapping.nvim
by itself wouldn't really make sense and would probably out of the scope of this plugin. It would probably make more sense to request this as a feature in a status column plugin like https://github.com/luukvbaal/statuscol.nvim
, since there is nothing specific to wrapping.nvim
about the lines that are wrapped; it's NeoVim itself that does the wrapping, not this plugin.
For now, I'm going to close this issue. Thanks for your thoughts and input.