From 4ce0a810569ee03d93ca542bbde32f52c4034a17 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 7 Jun 2023 12:22:43 +0200 Subject: [PATCH] plugins: add and configure zen-mode and twilight Co-Authored-by: iGor milhit --- lua/custom/plugins/zen-mode.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/custom/plugins/zen-mode.lua diff --git a/lua/custom/plugins/zen-mode.lua b/lua/custom/plugins/zen-mode.lua new file mode 100644 index 0000000..ea7e783 --- /dev/null +++ b/lua/custom/plugins/zen-mode.lua @@ -0,0 +1,26 @@ +-- Zen mode with twilight. +-- Improves the edition experience with distraction free feature. + +return { + "folke/zen-mode.nvim", + -- Twilight allows to dim text outside of the cursor line. + dependencies = { + "folke/twilight.nvim", + opts = { + -- Set the context to null in order to avoid highlighting to much + -- paragraphs in markdown. + context = 0, + }, + }, + opts = { + window = { + -- Set the window width (85 columns) and height (80%). + width = 85, + height = .8, + options = { + -- Disable line numbering. + number = false, + }, + }, + }, +}