summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/zen
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/cfg/zen')
-rw-r--r--.config/nvim/lua/cfg/zen/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/lua/cfg/zen/init.lua b/.config/nvim/lua/cfg/zen/init.lua
index 0d6bfca..d4a3da5 100644
--- a/.config/nvim/lua/cfg/zen/init.lua
+++ b/.config/nvim/lua/cfg/zen/init.lua
@@ -1,7 +1,11 @@
local M = {}
+local status_ok, zen_mode = pcall(require, "zen-mode")
+if not status_ok then
+ return
+end
M.config = function()
- require("zen-mode").setup {
+ zen_mode.setup {
window = {
backdrop = 1,
height = 0.85, -- height of the Zen window