Skip to content

feat: allow disabling the plugin dynamically#34

Open
SVendittelli wants to merge 2 commits into
sitiom:mainfrom
SVendittelli:main
Open

feat: allow disabling the plugin dynamically#34
SVendittelli wants to merge 2 commits into
sitiom:mainfrom
SVendittelli:main

Conversation

@SVendittelli

@SVendittelli SVendittelli commented May 13, 2026

Copy link
Copy Markdown

Sometimes when screen sharing, I always want to show line number not relative, but the auto-commands clobber that. This lets me dynamically disable them either globally or just for one buffer. This gives the added advantage of being able to have this plugin only be enabled for some file types via an ftplugin if desired.

I use vim.g.numbertoggle_disable for globally disabling and vim.b.numbertoggle_disable for disabling in only a given buffer.

I found these features useful locally so I thought I'd upstream them!

Enable disabling the plugin either globally, or locally for a buffer by
setting an option.
It wasn't picking up the buffer previously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant