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.

19 lines
510 B

2 years ago
  1. require("zen-mode").setup {
  2. -- your configuration comes here
  3. -- or leave it empty to use the default settings
  4. -- refer to the configuration section below
  5. }
  6. vim.keymap.set("n", "<leader>z", function()
  7. require("zen-mode").toggle({
  8. window = {
  9. width = .85 -- width will be 85% of the editor width
  10. },
  11. on_open = function(win)
  12. vim.wo.relativenumber = false
  13. end,
  14. -- callback where you can add custom code when the Zen window closes
  15. on_close = function()
  16. end,
  17. })
  18. end)