diff options
Diffstat (limited to 'nvim/after/plugin/zenmode.lua')
-rw-r--r-- | nvim/after/plugin/zenmode.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nvim/after/plugin/zenmode.lua b/nvim/after/plugin/zenmode.lua new file mode 100644 index 0000000..753fbf8 --- /dev/null +++ b/nvim/after/plugin/zenmode.lua @@ -0,0 +1,30 @@ + +vim.keymap.set("n", "<leader>zz", function() + require("zen-mode").setup { + window = { + width = 90, + options = { } + }, + } + require("zen-mode").toggle() + vim.wo.wrap = false + vim.wo.number = true + vim.wo.rnu = true + ColorMyPencils() +end) + + +vim.keymap.set("n", "<leader>zZ", function() + require("zen-mode").setup { + window = { + width = 80, + options = { } + }, + } + require("zen-mode").toggle() + vim.wo.wrap = false + vim.wo.number = false + vim.wo.rnu = false + vim.opt.colorcolumn = "0" + ColorMyPencils() +end) |