diff options
| -rw-r--r-- | lua/default-config.lua | 4 | ||||
| -rw-r--r-- | lua/lv-zen/config.lua | 21 | ||||
| -rw-r--r-- | lua/lv-zen/init.lua | 22 | ||||
| -rw-r--r-- | lua/settings.lua | 2 | 
4 files changed, 26 insertions, 23 deletions
| diff --git a/lua/default-config.lua b/lua/default-config.lua index 059eb477..317886cc 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -75,7 +75,7 @@ O = {      -- Builtins      dashboard = { active = false },      colorizer = { active = false }, -    zen = { active = false }, +    -- zen = { active = false },      ts_playground = { active = false },      ts_context_commentstring = { active = false },      ts_hintobjects = { active = false }, @@ -265,3 +265,5 @@ O = {      footer = { "chrisatmachine.com" },    },  } + +require "lv-zen.config" diff --git a/lua/lv-zen/config.lua b/lua/lv-zen/config.lua new file mode 100644 index 00000000..ef1e2bc5 --- /dev/null +++ b/lua/lv-zen/config.lua @@ -0,0 +1,21 @@ +O.plugin["zen"] = { +	window = { +		backdrop = 1, +		height = 0.85, -- height of the Zen window +		options = { +			signcolumn = "no", -- disable signcolumn +			number = false, -- disable number column +			relativenumber = false, -- disable relative numbers +			-- cursorline = false, -- disable cursorline +			-- cursorcolumn = false, -- disable cursor column +			-- foldcolumn = "0", -- disable fold column +			-- list = false, -- disable whitespace characters +		}, +	}, +	plugins = { +		gitsigns = { enabled = false }, -- disables git signs +		-- your configuration comes here +		-- or leave it empty to use the default settings +		-- refer to the configuration section below +	}, +} diff --git a/lua/lv-zen/init.lua b/lua/lv-zen/init.lua index d4a3da5c..ce48a4b0 100644 --- a/lua/lv-zen/init.lua +++ b/lua/lv-zen/init.lua @@ -5,26 +5,6 @@ if not status_ok then  end  M.config = function() -  zen_mode.setup { -    window = { -      backdrop = 1, -      height = 0.85, -- height of the Zen window -      options = { -        signcolumn = "no", -- disable signcolumn -        number = false, -- disable number column -        relativenumber = false, -- disable relative numbers -        -- cursorline = false, -- disable cursorline -        -- cursorcolumn = false, -- disable cursor column -        -- foldcolumn = "0", -- disable fold column -        -- list = false, -- disable whitespace characters -      }, -    }, -    plugins = { -      gitsigns = { enabled = false }, -- disables git signs -      -- your configuration comes here -      -- or leave it empty to use the default settings -      -- refer to the configuration section below -    }, -  } +  zen_mode.setup(O.plugin.zen)  end  return M diff --git a/lua/settings.lua b/lua/settings.lua index 2a388e42..cce8d87e 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -41,7 +41,7 @@ opt.swapfile = false -- creates a swapfile  opt.termguicolors = true -- set term gui colors (most terminals support this)  opt.timeoutlen = O.timeoutlen -- time to wait for a mapped sequence to complete (in milliseconds)  opt.title = true -- set the title of window to the value of the titlestring -opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to +-- opt.titlestring = "%<%F%=%l/%L - nvim" -- what the title of the window will be set to  opt.undodir = CACHE_PATH .. "/undo" -- set an undo directory  opt.undofile = true -- enable persisten undo  opt.updatetime = 300 -- faster completion | 
