Skip to content

Commit

Permalink
fix(zen-mode-nvim): disable mini.indentscope if enabled (#434)
Browse files Browse the repository at this point in the history
* fix(zen-mode-nvim): disable mini.indentscope if enabled

* fix(zen-mode-nvim): indent guides fail to display upon exiting zen-mode when `show_current_context` is disabled
  • Loading branch information
Subjective authored and mehalter committed Jul 15, 2023
1 parent c35517c commit b3561a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/astrocommunity/editing-support/zen-mode-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

0 comments on commit b3561a0

Please sign in to comment.