summaryrefslogtreecommitdiff
path: root/lua/custom/plugins/zenmode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/custom/plugins/zenmode.lua')
-rw-r--r--lua/custom/plugins/zenmode.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/custom/plugins/zenmode.lua b/lua/custom/plugins/zenmode.lua
new file mode 100644
index 0000000..7f4cc88
--- /dev/null
+++ b/lua/custom/plugins/zenmode.lua
@@ -0,0 +1,30 @@
+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,
+}