Skip to content

Absolute numbers appearing in padding buffers #137

Open
@ilan-schemoul

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions