mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 09:04:36 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue