nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] Missing Line numbers on certain files

Open RoccoRakete opened this issue 2 years ago • 6 comments

Field Description
Nixpkgs <unstable>
Home Manager <unstable>

  • [ x ] I have read the FAQ and my bug is not listed there.

Description

Certain files are showing line numbers, others don't. I don't really know if it's a bug or a setting I can toggle, but I didn't find anything.

Line numbers are enabled.

image

image


options = {
        number = true;
        relativenumber = false;
        shiftwidth = 2;
      };

RoccoRakete avatar Apr 11 '24 18:04 RoccoRakete

This is very weird indeed... Can you try looking if number/relativenumber are actually enable when you are in a file where numbers are not showing ? :set number?, :set relativenumber?

GaetanLepage avatar Apr 16 '24 15:04 GaetanLepage

They are not. But I can enable them with set relativenumber But thats not persistent.

RoccoRakete avatar Apr 17 '24 10:04 RoccoRakete

My guess is that you have a plugin interfering with those settings. Can you try limiting your config as most as possible and adding back the rest progressively ?

GaetanLepage avatar Apr 17 '24 10:04 GaetanLepage

Yeah you seem to be right. I'm trying to figure out wich one it is. Any popular suggestions?

RoccoRakete avatar Apr 17 '24 11:04 RoccoRakete

It's getting weirder...

If I'm opening the file from a commandline, the line numbers are showing. If I open them with neo-tree or telescope, they aren't.

RoccoRakete avatar Apr 17 '24 11:04 RoccoRakete

@RoccoRakete Try using "opts" instead of options.

kevinsheth avatar May 03 '24 19:05 kevinsheth

Any news on this @RoccoRakete ?

GaetanLepage avatar Jul 14 '24 10:07 GaetanLepage