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", + }, + }, +}