Neovim configs for 2023. Hopefully they last.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
558 B

require("zen-mode").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
vim.keymap.set("n", "<leader>z", function()
require("zen-mode").toggle({
window = {
width = 90
},
on_open = function(win)
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)