nvim/nvim/lua/plugins/zen-mode.lua
2025-01-10 09:28:34 +01:00

15 lines
366 B
Lua
Executable File

return {
-- view buffer w/o distractions
"folke/zen-mode.nvim",
config = function()
require("zen-mode").setup({
window = {
width = 1,
height = 1,
},
})
vim.keymap.set("n", "<leader>z", ":ZenMode<CR>", { silent = true, desc = "open current buffer in zen mode" })
end,
}