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