IMOKURI / line-number-interval.nvim

Highlight line number/relativenumber by each XX lines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

custom interval for no relative number

IMOKURI opened this issue · comments

Custom interval is currently supported only for relative number.

It will be also supported for no relative number.

reference

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('.'))

オリジナルは @Chaitanyabsprip#5 (comment) にポスト