plugins: add and configure zen-mode and twilight

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-06-07 12:22:43 +02:00
parent 8eafbbedd7
commit 4ce0a81056
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 26 additions and 0 deletions

View File

@ -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,
},
},
},
}