IMOKURI / line-number-interval.nvim

Highlight line number/relativenumber by each XX lines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reducing color brightness in relative number with custom interval (maybe fibonacci)

Chaitanyabsprip opened this issue · comments

Is there a way to make the color of the number in descending brightness as you go farther from the current cursor position. It would probably require multiple highlight groups. I'd really like to have this in my setup.

Thank you for your comment. I'm interested in your idea.
I've implemented this idea.
Please check latest code.

is it possible without relative number?

maybe this comment can offer a solution,
so instead of checking against the exact numbers present in the custom interval lists, you can check whether rnu is set or not, if it is, then consider the number mentioned in the custom interval list as exact but if rnu is not set then consider the number in the custom interval list as relative, offset from the current line (vim.fn.line('.'))

OK, I've opened new issue for no relative number. #10

do you wish to port this to lua? I could help with that if this is something you are interested in

I have currently no plan to port this plugin to lua.