From 5da5f0506b5799dc757e9d93af23cebbfa18eb91 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:54:10 +0900 Subject: updates --- ar/.config/LazyVim/lua/plugins/goyo.lua | 53 --------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 ar/.config/LazyVim/lua/plugins/goyo.lua (limited to 'ar/.config/LazyVim/lua/plugins/goyo.lua') diff --git a/ar/.config/LazyVim/lua/plugins/goyo.lua b/ar/.config/LazyVim/lua/plugins/goyo.lua deleted file mode 100644 index 9d0f860..0000000 --- a/ar/.config/LazyVim/lua/plugins/goyo.lua +++ /dev/null @@ -1,53 +0,0 @@ -vim.g.is_goyo_active = false - -vim.g.goyo_enter = function() - if vim.fn.executable("tmux") == 1 and vim.fn.strlen(vim.env.TMUX) > 0 then - vim.fn.system("tmux set status off") - if not string.find(vim.fn.system("tmux list-panes -F '#F'"), "Z") then - vim.fn.system("tmux resize-pane -Z") - end - end - - vim.g.default_colorscheme = vim.g.colors_name or "default" - vim.o.background = "light" - vim.wo.linebreak = true - vim.wo.wrap = true - vim.bo.textwidth = 0 - vim.bo.wrapmargin = 0 - vim.cmd("Goyo 80x85%") - vim.cmd("colorscheme seoul256") - vim.g.is_goyo_active = true -end - -vim.g.goyo_leave = function() - if vim.fn.executable("tmux") == 1 and vim.fn.strlen(vim.env.TMUX) > 0 then - vim.fn.system("tmux set status on") - if string.find(vim.fn.system("tmux list-panes -F '#F'"), "Z") then - vim.fn.system("tmux resize-pane -Z") - end - end - vim.cmd("Goyo!") - vim.cmd("colorscheme " .. vim.g.default_colorscheme) - vim.g.is_goyo_active = false -end - -vim.g.toggle_goyo = function() - if vim.g.is_goyo_active then - vim.g.goyo_leave() - else - vim.g.goyo_enter() - end -end - -return { - "junegunn/goyo.vim", - cmd = "Goyo", - keys = { - vim.api.nvim_set_keymap( - "n", - "gy", - "lua vim.g.toggle_goyo()", - { noremap = true, silent = true, desc = "Toggle Goyo" } - ), - }, -} -- cgit v1.2.3