summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/.config/nvim/lua')
-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 })