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
550 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.o.wrap = true
vim.o.relativenumber = false
end,
-- callback where you can add custom code when the Zen window closes
on_close = function()
vim.o.wrap = false
vim.o.relativenumber = true
end,
})
end)