Skip to content

Commit

Permalink
fix(zen-mode-nvim): update to AstroNvim v4 (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSast committed Dec 8, 2023
1 parent c371e0e commit f58e86d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/astrocommunity/editing-support/zen-mode-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local utils = require "astronvim.utils"
local utils = require "astrocore"

return {
"folke/zen-mode.nvim",
Expand Down Expand Up @@ -26,7 +26,7 @@ return {
on_open = function() -- disable diagnostics, indent blankline, winbar, and offscreen matchup
vim.g.diagnostics_mode_old = vim.g.diagnostics_mode
vim.g.diagnostics_mode = 0
vim.diagnostic.config(require("astrocore.utils.lsp").diagnostics[vim.g.diagnostics_mode])
vim.diagnostic.config(require("astrolsp").diagnostics[vim.g.diagnostics_mode])

vim.g.indent_blankline_enabled_old = vim.g.indent_blankline_enabled
vim.g.indent_blankline_enabled = false
Expand All @@ -50,7 +50,7 @@ return {
end,
on_close = function() -- restore diagnostics, indent blankline, winbar, and offscreen matchup
vim.g.diagnostics_mode = vim.g.diagnostics_mode_old
vim.diagnostic.config(require("astrocore.utils.lsp").diagnostics[vim.g.diagnostics_mode])
vim.diagnostic.config(require("astrolsp").diagnostics[vim.g.diagnostics_mode])

vim.g.indent_blankline_enabled = vim.g.indent_blankline_enabled_old
vim.g.miniindentscope_disable = vim.g.miniindentscope_disable_old
Expand Down

0 comments on commit f58e86d

Please sign in to comment.