summaryrefslogtreecommitdiff
path: root/neovim
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@krotosaudio.com>2024-11-25 11:01:43 +0000
committerMichaël Ball <michael.ball@krotosaudio.com>2024-11-25 11:01:43 +0000
commitcad83669806bf50888f0804774704cf4fc6eea8c (patch)
tree26e5fc6d4fdb8d0c53490ea9fcf1b7e72594e9c0 /neovim
parent394c9e07bf11a63bf63738d40af211edd045994f (diff)
Fix Goyo config
Diffstat (limited to 'neovim')
-rw-r--r--neovim/.config/nvim/lua/plugins/goyo.lua10
1 files changed, 7 insertions, 3 deletions
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 })