diff options
author | Matthew Lemon <y@yulqen.org> | 2023-08-13 08:44:49 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-08-13 08:44:49 +0100 |
commit | c1d6bc6b4fd5208c7f3df0694f7aab501943981b (patch) | |
tree | ac34ead54ba6682a5c2e0d1a1f569346c76e9c90 /nvim-primeagen/after/plugin/zenmode.lua | |
parent | 39c92fea8b9e96b2756d94b285dae8cfb015d68f (diff) |
Adds primeagen neovim configuration
Diffstat (limited to '')
-rw-r--r-- | nvim-primeagen/after/plugin/zenmode.lua | 30 |
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) |