From 79f730c6ab42df8a654fda11474aaaa6cd0a155d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 10 Mar 2023 10:40:14 +0000 Subject: [PATCH] Add zen-mode and twilight plugins --- config/nvim/lua/config/init.lua | 1 + config/nvim/lua/plugins/zen_mode.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 config/nvim/lua/plugins/zen_mode.lua diff --git a/config/nvim/lua/config/init.lua b/config/nvim/lua/config/init.lua index 60940492..00cf68ac 100644 --- a/config/nvim/lua/config/init.lua +++ b/config/nvim/lua/config/init.lua @@ -18,6 +18,7 @@ vim.keymap.set("i", "jk", "") vim.keymap.set("n", "l", "Lazy") vim.keymap.set("n", "m", "Mason") vim.keymap.set("n", "s", "Dashboard") +vim.keymap.set("n", "z", "ZenMode") vim.keymap.set({ "n", "t" }, "", "NavigatorLeft") vim.keymap.set({ "n", "t" }, "", "NavigatorRight") vim.keymap.set({ "n", "t" }, "", "NavigatorUp") diff --git a/config/nvim/lua/plugins/zen_mode.lua b/config/nvim/lua/plugins/zen_mode.lua new file mode 100644 index 00000000..eff95c82 --- /dev/null +++ b/config/nvim/lua/plugins/zen_mode.lua @@ -0,0 +1,16 @@ +return { + "folke/zen-mode.nvim", + cmd = "ZenMode", + config = function() require("zen-mode").setup() end, + dependencies = { + "folke/twilight.nvim", + cmd = { + "TwilightEnable", + "Twilight", + }, + config = function() require("twilight").setup() end, + dependencies = { + "nvim-treesitter", + }, + }, +}