aboutsummaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/zenmode.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-14 09:10:26 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-14 09:10:26 +0100
commit0721b537a8aa3be8b70c183b25951494df9dcd0e (patch)
treeeff07bbc31aeefbb9d2e441bb5ca8b5a5a527ffb /nvim-primeagen/after/plugin/zenmode.lua
parent10a89dfbc6bc57ce12c8cf90f1b38a34b728b369 (diff)
Installs nvim config base-idea
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)