Actually, it has the same function as chunk, but some people may not like chunk and prefer the form of highlighting line numbers. That's why this mod exists.
The default configuration of this mod is:
local default_conf = {
style = "#806d9c",
priority = 10,
use_treesitter = false,
}
The unique configuration item is use_treesitter, which works the same as the same item in chunk. See details in chunk.
Just like chunk, we need to pay extra attention to the common configuration "style": it only accepts a string representing a hexadecimal color to indicate the color of line numbers.
Here is the default line_num style:
line_num = {
style = "#806d9c",
},
More interesting styles will be added in the future... If you have good ideas, welcome to suggest! 😊