From d1350909c58cefd07cc6cff4dc9e3f2fd94f6b99 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 10 Mar 2023 11:02:59 +0000 Subject: [PATCH] Add configs for zen-mode and twilight --- config/nvim/lua/config/twilight.lua | 4 ++++ config/nvim/lua/config/zen_mode.lua | 21 +++++++++++++++++++++ config/nvim/lua/plugins/zen_mode.lua | 9 +++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 config/nvim/lua/config/twilight.lua create mode 100644 config/nvim/lua/config/zen_mode.lua diff --git a/config/nvim/lua/config/twilight.lua b/config/nvim/lua/config/twilight.lua new file mode 100644 index 00000000..52306835 --- /dev/null +++ b/config/nvim/lua/config/twilight.lua @@ -0,0 +1,4 @@ +return { + context = 10, + treesitter = true, +} diff --git a/config/nvim/lua/config/zen_mode.lua b/config/nvim/lua/config/zen_mode.lua new file mode 100644 index 00000000..de77cc82 --- /dev/null +++ b/config/nvim/lua/config/zen_mode.lua @@ -0,0 +1,21 @@ +return { + 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 = { + options = { + enabled = true, + }, + twilight = { enabled = true }, + gitsigns = { enabled = true }, + tmux = { enabled = true }, + }, +} diff --git a/config/nvim/lua/plugins/zen_mode.lua b/config/nvim/lua/plugins/zen_mode.lua index eff95c82..4dcabd21 100644 --- a/config/nvim/lua/plugins/zen_mode.lua +++ b/config/nvim/lua/plugins/zen_mode.lua @@ -1,14 +1,11 @@ return { "folke/zen-mode.nvim", cmd = "ZenMode", - config = function() require("zen-mode").setup() end, + config = function() require("zen-mode").setup(require "config.zen_mode") end, dependencies = { "folke/twilight.nvim", - cmd = { - "TwilightEnable", - "Twilight", - }, - config = function() require("twilight").setup() end, + cmd = "Twilight", + config = function() require("twilight").setup(require "config.twilight") end, dependencies = { "nvim-treesitter", },