Set line width in zen_mode for better writing experience

This commit is contained in:
Evie Litherland-Smith 2023-07-20 15:00:43 +01:00
parent 4e2e50125d
commit 921175c7ef

View file

@ -6,6 +6,7 @@ return {
config = true,
opts = {
window = {
width = 80,
options = {
signcolumn = "no", -- disable signcolumn
number = false, -- disable number column
@ -19,12 +20,17 @@ return {
plugins = {
options = {
enabled = true,
ruler = false,
showcmd = false,
},
twilight = { enabled = true },
gitsigns = { enabled = true },
tmux = { enabled = true },
wezterm = {
enabled = false,
font = "+4", -- (10% increase per step)
},
},
on_open = function(win) vim.wo.scrolloff = 999 end,
on_close = function(win) vim.wo.scrolloff = 0 end,
on_close = function(win) vim.wo.scrolloff = -1 end,
},
}