local opts = { noremap = true, silent = true } -- "Focus" commands that rely on the Goyo plugin vim.api.nvim_set_keymap("n", "z", ":Goyo 80", opts) vim.api.nvim_set_keymap("n", "q", ":Goyo!", opts) -- automatically resize goyo when nvim resizes vim.api.nvim_create_autocmd("VimResized", { callback = function() if vim.fn.exists('#goyo') == 1 then vim.cmd("normal =") end end, })