From cad83669806bf50888f0804774704cf4fc6eea8c Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Mon, 25 Nov 2024 11:01:43 +0000 Subject: Fix Goyo config --- neovim/.config/nvim/lua/plugins/goyo.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'neovim/.config/nvim/lua/plugins') diff --git a/neovim/.config/nvim/lua/plugins/goyo.lua b/neovim/.config/nvim/lua/plugins/goyo.lua index 3b2f57f..5f70048 100644 --- a/neovim/.config/nvim/lua/plugins/goyo.lua +++ b/neovim/.config/nvim/lua/plugins/goyo.lua @@ -20,7 +20,9 @@ return { require('lualine').hide() vim.cmd('Limelight') - vim.cmd('VimRToggleFullscreen') + if vim.fn.exists('g:gui_vimr') == 1 then + vim.cmd('VimRToggleFullscreen') + end end local goyo_leave = function() @@ -32,10 +34,12 @@ return { vim.opt.showmode = true vim.opt.showcmd = true vim.opt.scrolloff = 5 - require('lualine').hide({unhide=true}) + require('lualine').hide({ unhide = true }) vim.opt.laststatus = 3 vim.cmd('Limelight!') - vim.cmd('VimRToggleFullscreen') + if vim.fn.exists('g:gui_vimr') == 1 then + vim.cmd('VimRToggleFullscreen') + end end local goyo_augroup = vim.api.nvim_create_augroup('Goyo', { clear = true }) -- cgit v1.2.3