nvim: Switch to zen-mode and twilight plugins

Switched out the old distraction-free writing plugins for neovim
variants zen-mode and twilight by folke - they are simple (one command
to invoke zen-mode, mapped to `F11`, and that's it), they are written in
lua and they work together beautifully (invoking zen-mode also invokes
twilight paragraph highlighting).
This commit is contained in:
Marty Oehme 2022-11-25 16:49:40 +01:00
parent ff6dab2c8f
commit 2b9981482f
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9
2 changed files with 3 additions and 16 deletions

View file

@ -183,8 +183,7 @@ map.x.nore.silent['<localleader>q'] = 'gq'
map.n.nore.silent['<localleader>Q'] = 'vapJgqap' map.n.nore.silent['<localleader>Q'] = 'vapJgqap'
-- Enter distraction free prose mode with F11 -- Enter distraction free prose mode with F11
map.n.nore.silent['<F11>'] = ':TZAtaraxis<cr>' map.n.nore.silent['<F11>'] = ':ZenMode<cr>'
map.n.nore.silent['<F10>'] = ':TZMinimalist<cr>'
-- PLUGIN: fzf-bibtex -- PLUGIN: fzf-bibtex
-- map @@ to automatically insert citation reference at cursor -- map @@ to automatically insert citation reference at cursor

View file

@ -102,20 +102,8 @@ require("packer").startup(function()
ft = { "quarto" } ft = { "quarto" }
} }
use 'micarmst/vim-spellsync' -- personal dict improvements for git sync use 'micarmst/vim-spellsync' -- personal dict improvements for git sync
use { -- provide distraction free writing use { 'folke/zen-mode.nvim', config = require('zen-mode').setup() } -- provide distraction free writing
'Pocco81/TrueZen.nvim', use 'folke/twilight.nvim' -- provide even distraction free-er writing (lowlight paragraphs)
config = function()
require("true-zen").setup({
integrations = {
gitsigns = true,
lualine = true,
tmux = { global = false },
limelight = true
}
})
end
}
use { 'junegunn/limelight.vim', event = 'BufRead' } -- provide even distraction free-er writing (lowlight paragraphs)
use 'alok/notational-fzf-vim' -- quickly search through the wiki use 'alok/notational-fzf-vim' -- quickly search through the wiki
-- languages -- languages