From f8b7fc5b33ac12618ca8634d717d2693a7f349ff Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 25 Jan 2023 15:39:53 +0100 Subject: [PATCH] Replace Goyo with Zen Mode --- init.lua | 1 - lua/callbacks.lua | 10 ---------- lua/plugins/init.lua | 6 ------ lua/plugins/zen-mode.lua | 28 ++++++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 17 deletions(-) delete mode 100644 lua/callbacks.lua create mode 100644 lua/plugins/zen-mode.lua diff --git a/init.lua b/init.lua index c24a685..317be41 100644 --- a/init.lua +++ b/init.lua @@ -17,4 +17,3 @@ vim.g.maplocalleader = ' ' require('lazy').setup('plugins') require('config') require('completion') -require('callbacks') diff --git a/lua/callbacks.lua b/lua/callbacks.lua deleted file mode 100644 index 8a2de05..0000000 --- a/lua/callbacks.lua +++ /dev/null @@ -1,10 +0,0 @@ -goyo_unhide = true -function goyo_toggle() - if goyo_unhide == true then - require('lualine').hide({unhide=false}) - goyo_unhide = false - else - require('lualine').hide({unhide=true}) - goyo_unhide = true - end -end diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 02106ba..6d4bb33 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,12 +1,6 @@ return { 'RRethy/nvim-base16', 'tpope/vim-commentary', - { - 'junegunn/goyo.vim', - config = function() - vim.keymap.set('n', 'f', ':lua goyo_toggle():Goyo') - end - }, -- completion 'hrsh7th/nvim-cmp', diff --git a/lua/plugins/zen-mode.lua b/lua/plugins/zen-mode.lua new file mode 100644 index 0000000..1a41a02 --- /dev/null +++ b/lua/plugins/zen-mode.lua @@ -0,0 +1,28 @@ +return { + 'folke/zen-mode.nvim', + config = { + window = { + backdrop = 1, + width = 80, + height = .9, + options = { + signcolumn = "no", + number = false, + relativenumber = false, + cursorline = false, + cursorcolumn = false, + foldcolumn = "0", + list = false, + } + }, + plugins = { + alacritty = { + enabled = true, + font = "13", + }, + }, + }, + keys = { + { 'fg', 'ZenMode', desc = 'Zen Mode' }, + }, +}