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

2 years ago
2 years ago
2 years ago
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 = 90
  10. },
  11. on_open = function(win)
  12. vim.o.wrap = true
  13. vim.o.relativenumber = false
  14. end,
  15. -- callback where you can add custom code when the Zen window closes
  16. on_close = function()
  17. vim.o.wrap = false
  18. vim.o.relativenumber = true
  19. end,
  20. })
  21. end)