local status_ok, zen_mode = pcall(require, "zen-mode") if not status_ok then return end zen_mode.setup { window = { backdrop = 1, height = 0.9, width = 80, options = { signcolumn = "no", number = false, relativenumber = false, cursorline = true, cursorcolumn = false, -- disable cursor column }, }, plugins = { gitsigns = { enabled = false }, tmux = { enabled = false }, twilight = { enabled = false }, }, on_open = function() vim.g.cmp_active = false vim.cmd [[LspStop]] local status_ok, _ = pcall(vim.api.nvim_set_option_value, "winbar", nil, { scope = "local" }) if not status_ok then return end if vim.fn.exists("#" .. "_winbar") == 1 then vim.cmd("au! " .. "_winbar") end end, on_close = function() vim.g.cmp_active = true vim.cmd [[LspStart]] require("user.winbar").create_winbar() end, }