nvim/lua/custom/plugins/zen.lua

30 lines
718 B
Lua
Raw Normal View History

return {
"folke/zen-mode.nvim",
opts = {
2024-01-02 16:41:51 -03:00
plugins = {
kitty = {
enabled = true,
2024-01-06 18:34:56 -03:00
font = "+3",
},
wezterm = {
enabled = true,
font = "+3"
},
tmux = { enabled = true },
2024-01-02 16:41:51 -03:00
},
2024-01-06 18:34:56 -03:00
on_open = function()
vim.fn.system("kitty @ set-font-size +5")
vim.fn.system("tmux set status off")
vim.fn.system("tmux set -w pane-border-status off")
end,
on_close = function()
vim.fn.system("kitty @ set-font-size +0")
vim.fn.system("tmux set status on")
vim.fn.system("tmux set -w pane-border-status on")
end,
},
config = function()
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>", { silent = true })
end
}