nixos/home/neovim/config/lua/plugins/zen_mode.lua

37 lines
1.2 KiB
Lua

return {
"folke/zen-mode.nvim",
dependencies = { "folke/twilight.nvim" },
cmd = { "ZenMode" },
init = function() vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>") end,
config = true,
opts = {
window = {
width = 80,
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
},
},
plugins = {
options = {
enabled = true,
ruler = false,
showcmd = false,
},
twilight = { enabled = true },
gitsigns = { enabled = true },
wezterm = {
enabled = false,
font = "+4", -- (10% increase per step)
},
},
on_open = function(win) vim.wo.scrolloff = 999 end,
on_close = function(win) vim.wo.scrolloff = -1 end,
},
}