2023-03-10 10:40:14 +00:00
|
|
|
return {
|
|
|
|
"folke/zen-mode.nvim",
|
2023-05-11 10:44:22 +01:00
|
|
|
dependencies = { "folke/twilight.nvim" },
|
2023-05-11 08:51:35 +01:00
|
|
|
cmd = { "ZenMode" },
|
|
|
|
init = function() vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>") end,
|
|
|
|
config = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
opts = {
|
|
|
|
window = {
|
|
|
|
options = {
|
|
|
|
signcolumn = "no", -- disable signcolumn
|
|
|
|
number = false, -- disable number column
|
|
|
|
relativenumber = false, -- disable relative numbers
|
|
|
|
cursorline = false, -- disable cursorline
|
|
|
|
cursorcolumn = false, -- disable cursor column
|
|
|
|
foldcolumn = "0", -- disable fold column
|
|
|
|
list = false, -- disable whitespace characters
|
|
|
|
},
|
2023-03-10 10:40:14 +00:00
|
|
|
},
|
2023-05-11 10:44:22 +01:00
|
|
|
plugins = {
|
|
|
|
options = {
|
|
|
|
enabled = true,
|
|
|
|
},
|
|
|
|
twilight = { enabled = true },
|
|
|
|
gitsigns = { enabled = true },
|
|
|
|
tmux = { enabled = true },
|
|
|
|
},
|
|
|
|
on_open = function(win) vim.wo.scrolloff = 999 end,
|
|
|
|
on_close = function(win) vim.wo.scrolloff = 0 end,
|
2023-03-10 10:40:14 +00:00
|
|
|
},
|
|
|
|
}
|