31 lines
621 B
Lua
31 lines
621 B
Lua
|
|
||
|
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)
|