2023-05-04 12:39:25 +01:00
|
|
|
return {
|
|
|
|
"folke/zen-mode.nvim",
|
2023-05-31 16:47:30 +01:00
|
|
|
cond = not vim.g.vscode,
|
2023-05-16 09:22:33 +01:00
|
|
|
dependencies = { "folke/twilight.nvim" },
|
|
|
|
cmd = { "ZenMode" },
|
|
|
|
init = function() vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>") end,
|
|
|
|
config = true,
|
|
|
|
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-05-04 12:39:25 +01:00
|
|
|
},
|
2023-05-16 09:22:33 +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-05-04 12:39:25 +01:00
|
|
|
},
|
|
|
|
}
|