Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute numbers appearing in padding buffers #137

Open
ilan-schemoul opened this issue Jul 27, 2024 · 0 comments
Open

Absolute numbers appearing in padding buffers #137

ilan-schemoul opened this issue Jul 27, 2024 · 0 comments

Comments

@ilan-schemoul
Copy link

ilan-schemoul commented Jul 27, 2024

I created this issue to describe a problem I encountered and how to fix it. As well as justify why my PR #136 is useful.

Problem

Capture d'écran 2024-07-27 225614
The floating "1" everywhere are because ataxis creates padding buffers to center the code buffer. These buffers unfortunately have absolute number set to them.
It's distracting and doesn't look good.

Solution

If anyone else is wondering why it's like this they might have a plugin like "focus" which enables absolute numbers on window focus change.

You need something like this

    vim.api.nvim_create_autocmd("FileType", {
        pattern = "true_zen_padding_window",
        callback = function()
          vim.b.focus_disable = true
        end
    })

You also need to wait for the PR #136 to be merged (or directly use my repo)

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

No branches or pull requests

1 participant