summaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/zenmode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim-primeagen/after/plugin/zenmode.lua')
-rw-r--r--nvim-primeagen/after/plugin/zenmode.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/zenmode.lua b/nvim-primeagen/after/plugin/zenmode.lua
new file mode 100644
index 0000000..753fbf8
--- /dev/null
+++ b/nvim-primeagen/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)