Replace Goyo with Zen Mode

This commit is contained in:
Emil Miler 2023-01-25 15:39:53 +01:00
parent 68615dada0
commit f8b7fc5b33
4 changed files with 28 additions and 17 deletions

View File

@ -17,4 +17,3 @@ vim.g.maplocalleader = ' '
require('lazy').setup('plugins')
require('config')
require('completion')
require('callbacks')

View File

@ -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

View File

@ -1,12 +1,6 @@
return {
'RRethy/nvim-base16',
'tpope/vim-commentary',
{
'junegunn/goyo.vim',
config = function()
vim.keymap.set('n', '<leader>f', ':lua goyo_toggle()<cr>:Goyo<cr>')
end
},
-- completion
'hrsh7th/nvim-cmp',

28
lua/plugins/zen-mode.lua Normal file
View File

@ -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 = {
{ '<leader>fg', '<cmd>ZenMode<cr>', desc = 'Zen Mode' },
},
}