ojroques/nvim-hardline

Is it possible to show only line values and skip column values ?

collegeimprovements opened this issue ยท 2 comments

Thanks a lot for hardline. It's the only lua statusline-plugin that worked for me out of the box ๐Ÿ˜…
Is it possible to only show line numbers and not row number ?
Is it possible to remove the dots as well ?
Screenshot 2021-07-17 at 12 05 12 AM

Hello!
I'm glad you like the plugin. If you want to change the part that display line and columns numbers, you need to either edit that file: line.lua or create a new file in that directory and add it to the sections options of the configuration table.

If you choose the first option, in line.lua you could just change that line:

return table.concat({get_line(), get_column(), get_percent()}, ' ')

to:

  return table.concat({get_line(), get_percent()}, ' ')

and to remove the dots, change this line:

local padch = 'ยท'

to:

local padch = ''

I'm not willing to add these changes to the plugin since I prefer to have a part that display both lines/columns and because it would affect all users, so I encourage you to fork the plugin instead :)

Sure thing. If it's possible to get new config options, it would be great.
But like you said and have mentioned in Readme file, I'll fork the plugin until there is a real demand for this config options from more users.

Thanks again for pointers.