config.nvim/lua/custom/plugins/zenmode.lua

31 lines
693 B
Lua
Raw Permalink Normal View History

2024-11-11 22:17:41 -05:00
return {
"folke/zen-mode.nvim",
config = function()
vim.keymap.set("n", "<leader>zz", function()
require("zen-mode").setup({
window = {
width = 80,
options = {
signcolumn = "no",
number = false,
relativenumber = false,
wrap = true,
linebreak = true,
cursorline = false,
colorcolumn = "0",
},
},
plugins = {
gitsigns = { enabled = false },
options = {
enabled = true,
ruler = false,
showcmd = false,
},
},
})
require("zen-mode").toggle()
end)
end,
}