neovim: Add zen-mode-nvim

zen-mode-nvim is a cool lua plugin similar to Goyo that makes reading
and writing long-form content in neovim easier.
This commit is contained in:
Donovan Glover 2023-07-10 21:58:02 -04:00
parent 5352c9a613
commit dc677d170c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -145,6 +145,7 @@ in
nnoremap <silent> <leader>j :Buffers<CR>
nnoremap <silent> <leader>l :Rg<CR>
nnoremap <silent> <leader>; :NvimTreeToggle<CR>
nnoremap <silent> <leader>z :ZenMode<CR>
vnoremap <C-s> y:silent !notify-send -t 4000 "" "$(tango '<C-r>0')"<CR>:<Esc>
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
@ -270,6 +271,31 @@ in
type = "lua";
config = ''require('Comment').setup()'';
}
{
plugin = zen-mode-nvim;
type = "lua";
config = /* lua */ ''
require("zen-mode").setup({
window = {
backdrop = 1,
width = 80,
height = 0.9,
options = {
signcolumn = "no",
number = false,
},
},
on_open = function(win)
vim.cmd("GitBlameDisable")
vim.cmd("ScrollbarHide")
end,
on_close = function()
vim.cmd("GitBlameEnable")
vim.cmd("ScrollbarShow")
end,
})
'';
}
{
plugin = plenary-nvim;
type = "lua";