From d0f5db001522372efbfa77a802add1b212a91956 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Mon, 29 Aug 2022 21:51:59 -0500 Subject: [PATCH] enabling linebreak wrapping in zen mode --- nvim/lua/plugins-conf.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nvim/lua/plugins-conf.lua b/nvim/lua/plugins-conf.lua index 51b3c02..7036002 100644 --- a/nvim/lua/plugins-conf.lua +++ b/nvim/lua/plugins-conf.lua @@ -186,8 +186,21 @@ require'lualine'.setup { -- zen mode config require('true-zen').setup { + modes = { + ataraxis = { + callbacks = { + open_pre = function() + vim.opt.linebreak = true + end, + close_post = function() + vim.opt.linebreak = false + end + } + } + }, integrations = { tmux = true, lualine = true } } +