2023-06-01 07:20:55 +02:00
|
|
|
-- Zen mode with twilight.
|
|
|
|
-- Improves the edition experience with distraction free feature.
|
|
|
|
|
|
|
|
return {
|
|
|
|
"folke/zen-mode.nvim",
|
2023-06-09 13:00:41 +02:00
|
|
|
ft = {
|
|
|
|
"markdown",
|
|
|
|
"pandoc"
|
|
|
|
},
|
2023-06-01 07:20:55 +02:00
|
|
|
-- 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 = {
|
2023-07-01 21:44:56 +02:00
|
|
|
-- Disable line numbering, signcolumn and colorcolumn.
|
2023-06-01 07:20:55 +02:00
|
|
|
number = false,
|
|
|
|
signcolumn = "no",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins = {
|
|
|
|
options = {
|
|
|
|
enabled = true,
|
|
|
|
ruler = false,
|
|
|
|
showcmd = false,
|
|
|
|
},
|
|
|
|
gitsigns = { enabled = false },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|