From 0721b537a8aa3be8b70c183b25951494df9dcd0e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 14 May 2023 09:10:26 +0100 Subject: Installs nvim config base-idea --- nvim-primeagen/after/plugin/zenmode.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nvim-primeagen/after/plugin/zenmode.lua (limited to 'nvim-primeagen/after/plugin/zenmode.lua') 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", "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", "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) -- cgit v1.2.3