|
|
@ -7,13 +7,16 @@ require("zen-mode").setup { |
|
|
|
vim.keymap.set("n", "<leader>z", function() |
|
|
|
require("zen-mode").toggle({ |
|
|
|
window = { |
|
|
|
width = .85 -- width will be 85% of the editor width |
|
|
|
width = 90 |
|
|
|
}, |
|
|
|
on_open = function(win) |
|
|
|
vim.wo.relativenumber = false |
|
|
|
vim.opt.wrap = true |
|
|
|
vim.opt.relativenumber = false |
|
|
|
end, |
|
|
|
-- callback where you can add custom code when the Zen window closes |
|
|
|
on_close = function() |
|
|
|
vim.opt.wrap = false |
|
|
|
vim.opt.relativenumber = true |
|
|
|
end, |
|
|
|
}) |
|
|
|
end) |