folke / zen-mode.nvim

🧘 Distraction-free coding for Neovim
Apache License 2.0
1.59k stars 42 forks source link

Feature request: add an option to set vertical padding #73

Closed mroavi closed 3 weeks ago

mroavi commented 1 year ago

It would be nice to have the option to set the number of (virtual) blank lines that are displayed above/below the first/last lines of the buffer that is being displayed (this is what I refer to as vertical padding). I noticed that Goyo has this as default:

goyo:

image

zen-mode:

image

miguno commented 1 year ago

+1

It would be nice to have support for horizontal padding, too.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

miguno commented 3 weeks ago

ping

b0ae989c commented 3 weeks ago

This is already achievable without new features. Try

opts = {
  window = {
    height = function()
      return vim.api.nvim_win_get_height(0) - 2
    end,
  },
}