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

How to remove [Scratch] from narrow mode #123

Open
CarlosLoboxyz opened this issue Nov 2, 2023 · 2 comments
Open

How to remove [Scratch] from narrow mode #123

CarlosLoboxyz opened this issue Nov 2, 2023 · 2 comments

Comments

@CarlosLoboxyz
Copy link

Screenshot_20231102_155330

How do i remove those white lines from the top and the bottom? Read the documentation but there's no clear answer

My config file

require('true-zen').setup {
    modes = {
        ataraxis = {
            shade = "dark",
            backdrop = 0,
            padding = {
                top = 0,
                bottom = 0,
            },
        },
        minimalist = {},
        narrow = {
            folds_style = "invisible",
            run_ataraxis = true, -- display narrowed text in a Ataraxis session
            callbacks = { -- run functions when opening/closing Narrow mode
                open_pre = nil,
                open_pos = nil,
                close_pre = nil,
                close_pos = nil
            },
        },
        focus = {}
    },
    integrations = {
        tmux = true,
    }
}

local api = vim.api

api.nvim_set_keymap("n", "<leader>zn", ":TZNarrow<CR>", {})
api.nvim_set_keymap("v", "<leader>zn", ":'<,'>TZNarrow<CR>", {})
api.nvim_set_keymap("n", "<leader>zf", ":TZFocus<CR>", {})
api.nvim_set_keymap("n", "<leader>zm", ":TZMinimalist<CR>", {})
api.nvim_set_keymap("n", "<leader>za", ":TZAtaraxis<CR>", {})
@Alch-Emi
Copy link

Alch-Emi commented Apr 6, 2024

I believe I am experiencing this same issue. I see both a header and a footer when in either narrow or ataraxis mode, while using the default config. Currently using revision 2b9e210 on neovim v0.9.4 in kitty 0.31.0 on NixOS.

@Alch-Emi
Copy link

Alch-Emi commented Apr 6, 2024

Oh it looks like this is also reported in #116

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

2 participants