diff --git a/lua/astrocommunity/editing-support/zen-mode-nvim/init.lua b/lua/astrocommunity/editing-support/zen-mode-nvim/init.lua index f94bd4483..1670e392f 100644 --- a/lua/astrocommunity/editing-support/zen-mode-nvim/init.lua +++ b/lua/astrocommunity/editing-support/zen-mode-nvim/init.lua @@ -27,14 +27,17 @@ return { vim.g.winbar_old = vim.wo.winbar vim.g.diagnostics_mode = 0 vim.g.indent_blankline_enabled = false + vim.b.miniindentscope_disable = true vim.wo.winbar = nil vim.diagnostic.config(require("astronvim.utils.lsp").diagnostics[vim.g.diagnostics_mode]) end, on_close = function() -- restore diagnostics, indent blankline, and winbar vim.g.diagnostics_mode = vim.g.diagnostics_mode_old vim.g.indent_blankline_enabled = vim.g.indent_blankline_enabled_old + vim.b.miniindentscope_disable = false vim.wo.winbar = vim.g.winbar_old vim.diagnostic.config(require("astronvim.utils.lsp").diagnostics[vim.g.diagnostics_mode]) + if vim.g.indent_blankline_enabled_old then vim.cmd "IndentBlanklineRefresh" end end, }, }